From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14355 invoked by alias); 2 Oct 2003 01:59:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 14348 invoked by alias); 2 Oct 2003 01:59:09 -0000 Date: Thu, 02 Oct 2003 01:59:00 -0000 Message-ID: <20031002015909.14347.qmail@sources.redhat.com> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031001174228.12479.levon@movementarian.org> References: <20031001174228.12479.levon@movementarian.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12479] System header should not cause -pedantic to error about "extra `;'" X-Bugzilla-Reason: CC X-SW-Source: 2003-10/txt/msg00155.txt.bz2 List-Id: 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" 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