This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/28022] Incorrect pedwarn for , expression in #if in c99 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: 14 Jun 2006 11:03:17 -0000
- Subject: [Bug preprocessor/28022] Incorrect pedwarn for , expression in #if in c99 mode
- References: <bug-28022-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from joseph at codesourcery dot com 2006-06-14 11:03 -------
Subject: Re: New: Incorrect pedwarn for , expression
in #if in c99 mode
On Wed, 14 Jun 2006, sabre at nondot dot org wrote:
> This testcase:
>
> #if 1 , 0
> #endif
>
> Should not warn with -std=c99 -pedantic. It currently does due to an inverted
Why do you think that (with reference to the relevant subclauses and
paragraphs of the standard)? The existing conditional looks correct to
me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28022