From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29919 invoked by alias); 15 Oct 2002 11:36: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 29905 invoked by uid 71); 15 Oct 2002 11:36:02 -0000 Date: Tue, 15 Oct 2002 04:36:00 -0000 Message-ID: <20021015113602.29904.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Gabriel Dos Reis Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation Reply-To: Gabriel Dos Reis X-SW-Source: 2002-10/txt/msg00571.txt.bz2 List-Id: The following reply was made to PR c++/8076; it has been noted by GNATS. From: Gabriel Dos Reis To: Matt Austern Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/8076: -Wmissing-declarations is C-only, conflicts with documentation Date: 15 Oct 2002 13:27:42 +0200 Matt Austern writes: | 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. OK, I'll reclassify it. | 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. Well, I'm not sure we wanted a -Wpossibly-misoverloading (which may include overloads that are not overrinding) than a -Wmissing-declarations. It is /typical/ in C++ to define a "global" (mor accurately a nemspace-scope) function with no preceding declaration. The -Wmissing-declarations is much about detecting "auto-prototyping" function use than detecting mis-overloading. I would suggest we keep separate these two separate issues. -- Gaby