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: 18 Jan 2008 12:09:08 -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 #7 from manu at gcc dot gnu dot org 2008-01-18 12:09 -------
(In reply to comment #1)
> This is also true for C++ unless -pedantic is specified (which is confusing
> since I thought -pedantic-errors was the default for C++, but apparently this
> changed at some point). Using '-Wall -Wextra -ansi -std=c++98' gives no
> warning.
>
Jack, why would you use "-ansi -std=c++98" in the same command-line? From
reading the current manual (for example,
http://gcc.gnu.org/onlinedocs/gcc-4.2.2/gcc/), what do you think that
combination achieves?
I am trying to improve this part of the manual. See my current patch at
http://gcc.gnu.org/ml/gcc-patches/2008-01/txt00033.txt
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368