preprocessor/10548: Strange 'file:line:number: preprocessor error'
Hallvard B Furuseth
h.b.furuseth@usit.uio.no
Tue Apr 29 18:26:00 GMT 2003
>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:
More information about the Gcc-prs
mailing list