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]

[Bug preprocessor/22168] #if #A == #B should have a diagnostic


------- Additional Comments From geoffk at gcc dot gnu dot org  2005-06-24 15:19 -------
Still a bug, even if a documented one; the syntax does not allow it.  '#if #A' is neither an if-group (because 
'#A' is not syntactically a constant-expression in the preprocessor) nor a sequence of group-parts, 
because 'if' is not a non-directive; see 6.10 paragraph 1.  Since this a syntax violation, a diagnostic is 
required.

Where is it documented?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22168


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