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

Reply via email to