This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/27904] operator>> to floating point variable does not support "inf", "infinity", or "nan"
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2006 04:11:21 -0000
- Subject: [Bug libstdc++/27904] operator>> to floating point variable does not support "inf", "infinity", or "nan"
- References: <bug-27904-1313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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