------- Comment #11 from pcarlini at suse dot de 2006-06-06 09:36 ------- (In reply to comment #10) > 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".
Honestly, given also all the text in the C++03 standard I do not agree: currently we are not entitled to parse such strings, because they are not conforming to the grammar and to the text of Stage2. We must fail (as all the other implementations I'm aware of are doing). If you disagree, please file the issue as a DR, but... The fact that C99 > explicitly accepts them seems sufficient justification to me. Sure, that is a very meaninful enhancement, which falls in the C99-compatibility area (already very active, see all the material coming from TR1) and should (will) be discussed in the context of the next standard (C++0x). More exactly, I reported already that the issue is known by Martin at least (I trust him about this section of the standard), but at this stage the policy is that reporting DRs for new features is not the best way to proceed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27904