This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: Portability of idiom



>   double __d = strtod(__s, &__sanity);
>   if (__sanity != __s && *__sanity == '\0' && errno == 0)

More compelling reasons as to why this bit of code should not depend on 
strtod... oh well. 

> I have passed this issue along to David O'Brien but in the interest of
> general GCC portability, I wonder if we couldn't revise the error
> checking idiom used to only look for the errno settings documented by
> the standard.  

Definitely.

> FYI, this issue is why these tests started failing both
> mainline and 3.0.X branch on FreeBSD 5.0 machines:
> 
>   FAIL: 26_numerics/complex_inserters_extractors.cc execution test
>   FAIL: 27_io/istream_sentry.cc execution test

Cool let's fix this up!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]