This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/9203: preprocessor
- From: neil at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, michael at moria dot de, nobody at gcc dot gnu dot org
- Date: 6 Jan 2003 23:12:47 -0000
- Subject: Re: preprocessor/9203: preprocessor
- Reply-to: neil at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, michael at moria dot de, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: preprocessor
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Mon Jan 6 15:12:47 2003
State-Changed-Why:
Not a bug. If an identifier in #if is not an expandable macro, it is replaced by 0 as required by ISO C.
You can get a warning for this latter case (when the identifier is not a macro) with -Wundef.
All this is documented in the manual.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9203