This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19091] problem with string to double conversion (overflow situation)
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2004 15:35:04 -0000
- Subject: [Bug libstdc++/19091] problem with string to double conversion (overflow situation)
- References: <20041220152140.19091.stefan.becuwe@ua.ac.be>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pcarlini at suse dot de 2004-12-20 15:35 -------
Indeed, *it overflows*. Try changing you testcase like this:
istringstream s("+4E308");
s >> r;
if (!s.fail())
cout << r << endl;
What happens, is just that overflows and r is left unchanged; by chance, is
a very small number.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19091