[Bug c++/38780] upgrade warning to error for bad C++ code ?

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jan 9 20:24:00 GMT 2009



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-01-09 20:24 -------
      pedwarn (input_location, pedantic ? OPT_pedantic : OPT_Wpointer_arith,
               "pointer to a function used in arithmetic");


So what happened is that -pedantic-errors is off by default in 4.4.   You can
get an error via -pedantic-errors.  This has always been a warning for the C
front-end so this change makes the C++ front-end consistent with the C
front-end.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38780



More information about the Gcc-bugs mailing list