This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc-3.4.4-1: c++: cmath: calling std::isnan results in endless loop
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Dave Korn" <dave dot korn at artimi dot com>
- Cc: <cygwin at cygwin dot com>, <libstdc++ at gcc dot gnu dot org>, <newlib at sources dot redhat dot com>
- Date: 27 Feb 2006 17:59:56 +0100
- Subject: Re: gcc-3.4.4-1: c++: cmath: calling std::isnan results in endless loop
- References: <01d101c63bb9$ef9ead20$a501a8c0@CAM.ARTIMI.COM>
"Dave Korn" <dave.korn@artimi.com> writes:
[...]
| It looks to me like the cygwin/newlib combination is not being compliant if
| it implements isnan as a function rather than a macro. I couldn't see
| anything in the standard that says it can be a function, and every reference
| to it describes it as a macro, not a function. It may be the case that
| libstdc++ is within its rights to assume that isnan is a macro after all.
yes, isnan and friends are supposed to be macros only, not functions.
| OTOH it may be that libstdc++ was only supposed to be shadowing those ctype
| macros that are guaranteed to have underlying function implementations; I
| don't know what the shadowing is for, so I can't comment.
libstdc++ is supposed to shadow ctype macros -- and it also expect
them to have a function implementation.
-- Gaby
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/