From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28587 invoked by alias); 29 Apr 2003 18:56:01 -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 28573 invoked by uid 71); 29 Apr 2003 18:56:00 -0000 Date: Tue, 29 Apr 2003 18:56:00 -0000 Message-ID: <20030429185600.28572.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Andrew Pinski Subject: Re: preprocessor/10548: Strange 'file:line:number: preprocessor error' Reply-To: Andrew Pinski X-SW-Source: 2003-04/txt/msg01381.txt.bz2 List-Id: The following reply was made to PR preprocessor/10548; it has been noted by GNATS. From: Andrew Pinski To: Hallvard B Furuseth Cc: Andrew Pinski , gcc-gnats@gcc.gnu.org Subject: Re: preprocessor/10548: Strange 'file:line:number: preprocessor error' Date: Tue, 29 Apr 2003 14:45:59 -0400 This is not a bug as already pointed out but 13 is the column at which foo(0,0) ends. On Tuesday, Apr 29, 2003, at 14:20 US/Eastern, Hallvard B Furuseth wrote: > >> Number: 10548 >> Category: preprocessor >> Synopsis: Strange 'file:line:number: preprocessor error' >> Confidential: no >> Severity: non-critical >> Priority: medium >> Responsible: unassigned >> State: open >> Class: sw-bug >> Submitter-Id: net >> Arrival-Date: Tue Apr 29 18:26:00 UTC 2003 >> Closed-Date: >> Last-Modified: >> Originator: Hallvard B Furuseth >> Release: 3.2.3 >> Organization: > University of Oslo >> Environment: > System: SunOS bombur.uio.no 5.8 Generic_108528-13 sun4u sparc > SUNW,Ultra-5_10 > Architecture: sun4 > > > host: sparc-sun-solaris2.8 > build: sparc-sun-solaris2.8 > target: sparc-sun-solaris2.8 > configured with: ../gcc-3.2.3/configure --enable-languages=c,c++,f77 > --disable-shared --disable-multilib --prefix=/usit/bombur/hbf > --enable-version-specific-runtime-libs --enable-threads >> Description: > > The preprocessor gives a strange error message > a.c:3:13: macro "foo" passed 2 arguments, but takes just 1 > 3 is the line number, but I don't know what 13 is. > >> How-To-Repeat: > > $ cat a.c > #define foo(x) bar > > int foo(0, 0); > $ gcc -S a.c > a.c:3:13: macro "foo" passed 2 arguments, but takes just 1 >> Fix: >> Release-Note: >> Audit-Trail: >> Unformatted: > >