[Bug c++/12479] System header should not cause -pedantic to error about "extra `;'"

gdr at integrable-solutions dot net gcc-bugzilla@gcc.gnu.org
Thu Oct 2 01:59:00 GMT 2003


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



More information about the Gcc-bugs mailing list