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++/12479] System header should not cause -pedantic to error about "extra `;'"


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


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