This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/6848: Not a preprocessing directive
- From: neil at gcc dot gnu dot org
- To: fonseca at mip dot sdu dot dk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 29 May 2002 19:32:48 -0000
- Subject: Re: preprocessor/6848: Not a preprocessing directive
- Reply-to: neil at gcc dot gnu dot org, fonseca at mip dot sdu dot dk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Not a preprocessing directive
State-Changed-From-To: feedback->closed
State-Changed-By: neil
State-Changed-When: Wed May 29 12:32:46 2002
State-Changed-Why:
There is no bug; it is not being treated as a preprocessing
directive. What makes you think it is?
The tokens are output as-is into the output stream, like
any "normal" preprocessor tokens are. The output stream
therefore contains
#error I'm not a preprocessing directive
but note that if you check the return value of GCC -E in
the shell, it is zero, and no error occurred.
If you compile with -c, you of course get a syntax error
when the compiler proper reads the raw '#'.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6848