This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38780] upgrade warning to error for bad C++ code ?
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jan 2009 20:24:25 -0000
- Subject: [Bug c++/38780] upgrade warning to error for bad C++ code ?
- References: <bug-38780-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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