[Bug libstdc++/20431] Out of range float inputs to cin get spurious values

pcarlini at suse dot de gcc-bugzilla@gcc.gnu.org
Fri Mar 11 21:20:00 GMT 2005


------- Additional Comments From pcarlini at suse dot de  2005-03-11 21:20 -------
1.39065e-309 is just a random bit pattern: a is uninitialized. Indeed, the input
of 1.0e+309 fails, a is left untouched and afterwards cin.fail() is true. Ok.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20431



More information about the Gcc-bugs mailing list