This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/7439: 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, greyleaf at attbi dot com, nobody at gcc dot gnu dot org
- Date: 2 Aug 2002 16:43:29 -0000
- Subject: Re: libstdc++/7439: 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, greyleaf at attbi dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Can't use the name INFINITY in an enum.
State-Changed-From-To: analyzed->open
State-Changed-By: bkoz
State-Changed-When: Fri Aug 2 09:43:28 2002
State-Changed-Why:
Here's the testcase. Confirmed under 3.3 gnu/linux.
#include <iostream>
int main( int argc, char** argv )
{
enum { INFINITY = -2 };
return (0);
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7439