This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jun 2005 23:09:15 -0000
- Subject: [Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode
- References: <20050624020406.22168.geoffk@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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