preprocessor/2941

neil@gcc.gnu.org neil@gcc.gnu.org
Fri May 25 12:56:00 GMT 2001


The following reply was made to PR preprocessor/2941; it has been noted by GNATS.

From: neil@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, mail@rschaeuble.de, nobody@gcc.gnu.org
Cc:  
Subject: Re: preprocessor/2941
Date: 25 May 2001 19:53:59 -0000

 Synopsis: gcc doens't use cpp properly ?!?
 
 State-Changed-From-To: open->closed
 State-Changed-By: neil
 State-Changed-When: Fri May 25 12:53:59 2001
 State-Changed-Why:
     Fixed on 9 May by Zack Weinberg in mainline and 3.0 branch.
     If you want to macroize a #pragma, you need to use the new
     C99 _Pragma operator, which GCC supports.
     Your original code now fails every time with
     
     $ g++ -save-temps test.c
     test.c:3: parse error before `#' token
     test.c:5: parse error before `int'
     $
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2941&database=gcc



More information about the Gcc-prs mailing list