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 #13 from pcarlini at suse dot de  2006-06-06 22:36 -------
(In reply to comment #12)
> At this web page:
>     http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1568.htm
> 
> I see this:
> 
> "The formatted input functions shall support the additional conversion
> specifications specified in C99 subclause 7.19.6.2."

Interesting, in particular the followint note.

> So if my understanding is correct, this facility is already in TR1.

Well, not really. The text in TR1 is about the facilities provided in <cstdio>
and <stdio.h>. The text in 22_locale should then be consistently updated, at
minimum the specifications for Stage2 and the grammar made consistent. But
probably the entire parsing must be heavily reworked, there are long standing
and nasty defects proper. More generally, the entire C++0x standard will be
more careful with NaNs, infinities and such, not mentioned at all in C++03
(similarly to C90). That is causing problems in other unrelated areas (while we
are writing people are discussing on the reflector containers vs NaNs...)


-- 


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]