This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]