This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: preprocessor/6848: Not a preprocessing directive


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]