From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 434 invoked by alias); 25 May 2005 05:26:07 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 399 invoked by uid 22791); 25 May 2005 05:26:01 -0000 Received: from adsl-110-19.38-151.net24.it (HELO develer.com) (151.38.19.110) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Wed, 25 May 2005 05:26:01 +0000 Received: (qmail 7373 invoked from network); 25 May 2005 05:25:57 -0000 Received: from unknown (HELO ?10.3.3.181?) (10.3.3.181) by trinity.trilan with SMTP; 25 May 2005 05:25:57 -0000 Message-ID: <42940C85.2060302@develer.com> Date: Wed, 25 May 2005 12:02:00 -0000 From: Bernardo Innocenti User-Agent: Mozilla Thunderbird 1.0.2-6 (X11/20050513) MIME-Version: 1.0 To: Kevin Handy CC: gcc@gcc.gnu.org Subject: Re: Compiling GCC with g++: a report References: <42936379.2040600@srv.net> In-Reply-To: <42936379.2040600@srv.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-05/txt/msg01356.txt.bz2 Kevin Handy wrote: >> That was caught at link time (and dealt with). >> >> > Would it be possible to add a diagnostic to GCC to warn when C++ > keywords are being used as identifiers? Maybe also add any > objective C keywords too. > > This seems like it would be useful to someone writing library > functions that could, at some later time, be imported (cut and paste) > into code for the other languages, as well as for code being converted > from C to C++. I'd like such a switch too. Until it's done, we could just poison C++ keywords in system.h. -- // Bernardo Innocenti - Develer S.r.l., R&D dept. \X/ http://www.develer.com/