This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]