[Bug c/28368] -std=c89 doesn't warn about gcc's "?:" extension
lloyd at randombit dot net
gcc-bugzilla@gcc.gnu.org
Wed Mar 7 14:48:00 GMT 2007
------- Comment #1 from lloyd at randombit dot net 2007-03-07 14:47 -------
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.
I'm not sure if it's really a bug, since the GCC docs make it pretty clear that
-ansi et. al. are basically useless in terms of getting it to warn you about
using extensions, but it is certainly unexpected.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28368
More information about the Gcc-bugs
mailing list