This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/19091] problem with string to double conversion (overflow situation)


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]