This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 21:06:50 -0000
- Subject: [Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension
- References: <bug-28368-838@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from joseph at codesourcery dot com 2007-03-07 21:06 -------
Subject: Re: -std=c89 doesn't warn about gcc's "?:" extension
On Wed, 7 Mar 2007, manu at gcc dot gnu dot org wrote:
> Sorry, I still don't understand what is the difference between -std=c89 and
> -std=gnu89.
-std=c89 accepts C89 programs that conflict with the GNU C89 language.
For example, ones using "inline" or "asm" as an identifier, or using any
non-reserved identifier predefined as a macro in GNU C (such as "linux" or
"i386") or using trigraphs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368