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++/27904] operator>> to floating point variable does not support "inf", "infinity", or "nan"



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


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