[Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 24 23:09:00 GMT 2005


------- Additional Comments From joseph at codesourcery dot com  2005-06-24 23:09 -------
Subject: Re:  #if #A == #B should have a diagnostic
 in ISO C mode

On Fri, 24 Jun 2005, neil at gcc dot gnu dot org wrote:

> My copy of the standard only requires a constant expression - can you point out
> where you read its requiring an integer constant expression?

6.10.1#1, "shall be an integer constant expression"; 6.8.1 in C90.

> The standard explicitly permits extensions to constant expressions.  Since this

But not to integer constant expressions (at least according to the view 
expressed in the DR#312 discussion in the draft Lillehammer minutes, 
although DR#032 implies a different view).



-- 


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



More information about the Gcc-bugs mailing list