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