This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/7439: C99 compat: Can't use the name INFINITY in an enum.
- From: bkoz at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at codesourcery dot com, greyleaf at attbi dot com, nobody at gcc dot gnu dot org
- Date: 2 Aug 2002 16:52:39 -0000
- Subject: Re: libstdc++/7439: C99 compat: Can't use the name INFINITY in an enum.
- Reply-to: bkoz at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at codesourcery dot com, greyleaf at attbi dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: Can't use the name INFINITY in an enum.
New Synopsis: C99 compat: Can't use the name INFINITY in an enum.
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Fri Aug 2 09:52:38 2002
State-Changed-Why:
This comes from /usr/include/bits/mathdef.h:
# define INFINITY HUGE_VALF
It looks like INFINITY is a C99 macro.
Currently, the plan WRT libstdc++ and C99 macros is undefined. It's also an issue for things like isnan, et. al. It's also a cause for the persistent failure of
26_numerics/c99_classification_macros_c++.cc
I don't know what to do, but whatever is done should be consitent with all of these C99'isms.
-benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7439