This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12479] System header should not cause -pedantic to error about "extra `;'"
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2003 01:59:09 -0000
- Subject: [Bug c++/12479] 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
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12479
------- Additional Comments From gdr at integrable-solutions dot net 2003-10-02 01:59 -------
Subject: Re: System header should not cause -pedantic to error about "extra `;'"
"levon at movementarian dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| The problem was originally with /usr/include/malloc.h. Is that not a system header ?
I can't tell.
| Anyway, you didn't really answer my question in comment 13, namely whether
| you consider it sensible to only allow these two states :
|
| 1) no mention at all of the problem
| 2) error + rejection
|
| which is the current state of CVS HEAD.
I think that particular construct is harmless enough so that the error
should probably be warning in regular contexts, ignored if
-Wno-sys-headers (or whatever that option is spelled), and an error if
-pedantic (except in system headers unless -Wsys-headers).
-- Gaby