This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37624] [4.4 Regression]: 22_locale/num_get/get/char/10.cc
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2008 16:45:43 -0000
- Subject: [Bug target/37624] [4.4 Regression]: 22_locale/num_get/get/char/10.cc
- References: <bug-37624-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from paolo dot carlini at oracle dot com 2008-09-23 16:45 -------
Unfortunately, I think we have to "xfail" the test for targets not having
available strtold and falling back to sscanf for long double parsing. Note that
DR 23 mandates, for a reason, a behaviour equivalent to strtold, *not* sscanf,
because the latter is weaker as regards error checking, essentially. On many
targets, "6e " is successfully parsed by sscanf as 6, whereas with strtold we
can tell that not all the input is consumed and issue an error from the C++
library.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle
|dot org |dot com
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-23 16:45:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37624