This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12479] [3.4 only] System header should not cause -pedantic to error about "extra `;'"
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Dec 2003 08:18:07 -0000
- Subject: [Bug c++/12479] [3.4 only] System header should not cause -pedantic to error about "extra `;'"
- References: <20031001174228.12479.levon@movementarian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-12-22 08:18 -------
Zack is correct that G++ mishandles -pedantic. It's current behavior (with the
additional complication of -fpermissive) is neither necessary nor concistent
with the C front end.
The current situation is a way of avoiding having to go through and analyze
every "pedwarn" in G++ to decide whether to make it into:
if (pedantic) pedwarn (...)
or:
error (...)
At this point, it would probably just make sense to deprecate -fpermissive, and
make all uses of "pedwarn" in the C++ front end that are not guarded by "if
(pedantic)" into "error" calls.
Meanwhile, I will make the particular pedwarn in question conditional on
!in_system_header, which makes sense anyhow.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12479