Opened 6 years ago

Closed 6 years ago

#12226 closed Bugs (fixed)

Microsoft compiler bug with boost::spirit::traits::absolute_value

Reported by: Sergey Polsky <fatman@…> Owned by: Joel de Guzman
Milestone: To Be Determined Component: spirit
Version: Boost 1.61.0 Severity: Problem
Keywords: compiler Cc:

Description

Microsoft optimizing compiler (19.00.23918 for x86 from Visual studio 2015) removes code of boost::spirit::traits::absolute_value::call for int, long and boost::long_long_type, and absolute_value<int>::call((int)-1) returns 4294967295 instead of 1.

Attachments (2)

BoostTest.zip (2.8 KB ) - added by Sergey Polsky <fatman@…> 6 years ago.
Example of code, build configuration: Release x86
fix.diff (1.1 KB ) - added by Sergey Polsky <fatman@…> 6 years ago.
Possible solution

Download all attachments as: .zip

Change History (4)

by Sergey Polsky <fatman@…>, 6 years ago

Attachment: BoostTest.zip added

Example of code, build configuration: Release x86

by Sergey Polsky <fatman@…>, 6 years ago

Attachment: fix.diff added

Possible solution

comment:1 by Joel de Guzman, 6 years ago

This is already fixed in devel

comment:2 by Joel de Guzman, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.