This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/20431] Out of range float inputs to cin get spurious values
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Mar 2005 21:20:22 -0000
- Subject: [Bug libstdc++/20431] Out of range float inputs to cin get spurious values
- References: <20050311210236.20431.david.moore@intel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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