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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2006 22:39:11 -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 #2 from pinskia at gcc dot gnu dot org 2006-06-05 22:39 -------
I don't think I agree.
27.6.1.2.2 says:
As in the case of the inserters, these extractors depend on the locale?s
num_get<> (22.2.2.1) object to perform
parsing the input stream data. The conversion occurs as if performed by the
following code fragment:
22.2.2.1.2/5 says:
For conversions to a floating type the specifier is %g.
And then in the C standard:
7.19.6.2/12:
a,e,f,g
Matches an optionally signed floating-point number, infinity, or NaN, whose
format is the same as expected for the subject sequence of the strtod
function. The corresponding argument shall be a pointer to floating.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27904