preprocessor/2881

neil@gcc.gnu.org neil@gcc.gnu.org
Mon May 21 02:16:00 GMT 2001


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

From: neil@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, markus@oberhumer.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: preprocessor/2881
Date: 21 May 2001 09:12:27 -0000

 Synopsis: code inside "#if 0" generates warnings with -pedantic
 
 State-Changed-From-To: open->closed
 State-Changed-By: neil
 State-Changed-When: Mon May 21 02:12:27 2001
 State-Changed-Why:
     Not a bug.  Like Carlo said, the standard mandates that,
     in translation pass 3, comments are removed.
     This occurs before translation phase 4, in which
     preprocessing directives are handled.  Thus, theoretically,
     the comment-handling part of the preprocessor has no idea
     whether it is in a false conditional or not.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2881&database=gcc



More information about the Gcc-prs mailing list