This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/19091] New: problem with string to double conversion (overflow situation)
- From: "stefan dot becuwe at ua dot ac dot be" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2004 15:22:03 -0000
- Subject: [Bug libstdc++/19091] New: problem with string to double conversion (overflow situation)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Following conversion should overflow, and not return 8.02393e-308. Same
problem, although different output, when reading "4E308" from standard input.
#include <iostream>
#include <sstream>
using namespace std;
int main()
{
double r;
istringstream s("+4E308");
s >> r;
cout << r << endl;
}
--
Summary: problem with string to double conversion (overflow
situation)
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: stefan dot becuwe at ua dot ac dot be
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i386 linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19091