From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22297 invoked by alias); 29 Nov 2003 21:53:43 -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 22284 invoked from network); 29 Nov 2003 21:53:41 -0000 Received: from unknown (HELO monkey.akihabara.co.uk) (213.152.55.49) by sources.redhat.com with SMTP; 29 Nov 2003 21:53:41 -0000 Received: from neil by monkey.akihabara.co.uk with local (Exim 4.22) id 1AQCzC-0005NN-9D; Sat, 29 Nov 2003 21:50:42 +0000 Date: Sat, 29 Nov 2003 23:11:00 -0000 From: Neil Booth To: Marc Espie Cc: Andreas Schwab , gcc@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Re: PATCH: work-around for bug in -traditional-cpp Message-ID: <20031129215042.GA18674@daikokuya.co.uk> References: <20031125125336.GA3717@tetto.gentiane.org> <20031129154742.GA17134@tetto.gentiane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031129154742.GA17134@tetto.gentiane.org> User-Agent: Mutt/1.5.4i X-SW-Source: 2003-11/txt/msg01528.txt.bz2 Marc Espie wrote:- > On Tue, Nov 25, 2003 at 02:27:50PM +0100, Andreas Schwab wrote: > > An even simpler test case: > > > > #define a(b,c) > > #if 0 > > #define b(x,y) a(x) > > #endif > > > > cpp.c:3: macro "a" requires 2 arguments, but only 1 given > > > > Interestingly, changing #if 0 to #if 1 removes the error. > > Okay, it looks like trad-cpp is messing with skipping. If you're skipping you shouldn't even be attempting to expand macros. Neil.