[Bug libstdc++/27904] operator>> to floating point variable does not support "inf", "infinity", or "nan"
ian at airs dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 6 04:12:00 GMT 2006
------- Comment #10 from ian at airs dot com 2006-06-06 04:11 -------
In C90 strtod does not say anything specifically about "inf", etc. However, it
does say:
In other than the "C" locale, additional implementation-defined subject
sequence forms may be accepted.
In any case, to me this is a quality of implementation issue. A good
implementation will accept "inf", "infinity" and "nan". The fact that C99
explicitly accepts them seems sufficient justification to me. If necessary we
can act otherwise if POSIXLY_CORRECT.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27904
More information about the Gcc-bugs
mailing list