------- Comment #8 from rguenth at gcc dot gnu dot org 2007-10-12 15:20 ------- What probably adds to the confusion is that C++ defaults to give errors for pedwarns but has pedantic = 0. But it is only possible to re-set pedantic-errors with -fpermissive. So to get plain -pedantic you need -pedantic -fpermissive for C++ while -pedantic-errors works as expected.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33750