From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30316 invoked by alias); 14 Oct 2002 22:16:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30276 invoked by uid 71); 14 Oct 2002 22:16:01 -0000 Date: Mon, 14 Oct 2002 15:16:00 -0000 Message-ID: <20021014221601.30274.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Matt Austern Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation Reply-To: Matt Austern X-SW-Source: 2002-10/txt/msg00562.txt.bz2 List-Id: The following reply was made to PR c++/8076; it has been noted by GNATS. From: Matt Austern To: gcc-gnats@gcc.gnu.org Cc: Gabriel Dos Reis Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation Date: Mon, 14 Oct 2002 15:17:27 -0700 I understand that the documentation is going to be changed to say that this is a C-only option. I suggest, however, that changing the documentation doesn't mean we should close this bug; rather, it means we should reclassify this from a bug to a feature request. Seems to me that this warning is still useful for C++. Arguably more useful than in C: in C you'll get an error message from void foo(signed char); void foo(unsigned char x) { } but in C++ it's legal. It would be nice to have a switch that gave a warning when you make a mistake like that. --Matt