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: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2007 15:52:25 -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 #6 from manu at gcc dot gnu dot org 2007-03-08 15:52 -------
(In reply to comment #5)
> 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.
>
That clarifies all perfectly. I think it is not as clear in the manual but
perhaps I am a bit slow. Maybe in -std= it should say:
gnu89
- Default, ISO C90 plus GNU extensions (including some C99
fea‐
- tures).
+ Default, subset of ISO C90 that doesn't conflict
+ with GNU extensions (including some C99 features
+ that conflict with C90)
In any case, this bug seems invalid to me.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368