Opened 11 years ago

#6449 new Bugs

numeric_cast is broken when using VC and /RTCc option

Reported by: y.hoshizuki Owned by: Douglas Gregor
Milestone: To Be Determined Component: numeric
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description

run-time checker detects the illegal assignment in GT_HiT::apply() in numeric\conversion\detail\converter.hpp called by 'numeric_cast<int, unsigned short>'.

please compile the attached file with below command.

cl.exe numeric.cpp /EHsc /RTCc /Zi

I confirmed same problem using VC2005 + boost 1.47.0 and VC2010 + boost 1.48.0.

Attachments (1)

numeric.cpp (223 bytes ) - added by y.hoshizuki 11 years ago.
minimal test program

Download all attachments as: .zip

Change History (1)

by y.hoshizuki, 11 years ago

Attachment: numeric.cpp added

minimal test program

Note: See TracTickets for help on using tickets.