[Bug libstdc++/31836] [4.3 Regression] FAIL: 27_io/basic_istream/extractors_arithmetic/char/12.cc execution test
amylaar at spamcop dot net
gcc-bugzilla@gcc.gnu.org
Mon May 14 18:25:00 GMT 2007
------- Comment #34 from amylaar at spamcop dot net 2007-05-14 19:25 -------
Subject: Re: [4.3 Regression] FAIL:
27_io/basic_istream/extractors_arithmetic/char/12.cc execution test
Quoting pcarlini at suse dot de <gcc-bugzilla@gcc.gnu.org>:
> Now, the strange thing is that, before these two last patches (in 4_2-branch
> in
> other terms), errno doesn't turn out to be == ERANGE for your target: strtof
> should have set it...
It's lameness in newlib.
newlib/libc/stdlib/strtod.c defines:
float
_DEFUN (strtof, (s00, se),
_CONST char *s00 _AND
char **se)
{
double retval = _strtod_r (_REENT, s00, se);
if (isnan (retval))
return nanf (NULL);
return (float)retval;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31836
More information about the Gcc-bugs
mailing list