[Bug libstdc++/64054] 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc FAILs

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 24 16:19:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64054

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Weird. Somehow the double variable 'd' is getting set to 6 after it is
(correctly) written to the stream, so converting "0x1.1000000000000p+8" back to
a double doesn't compare equal to it, because 272. != 6.

Smells like memory corruption of some kind.



More information about the Gcc-bugs mailing list