This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/2219: Using "##" with macro varargs generates spurious warning
- To: gcc-gnats at gcc dot gnu dot org
- Subject: preprocessor/2219: Using "##" with macro varargs generates spurious warning
- From: jelson at circlemud dot org
- Date: 8 Mar 2001 00:50:19 -0000
- Reply-To: jelson at circlemud dot org
>Number: 2219
>Category: preprocessor
>Synopsis: Using "##" with macro varargs generates spurious warning
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Mar 07 16:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jeremy Elson
>Release: gcc version 2.97 20001120 (experimental)
>Organization:
>Environment:
cross compiler for sh4-linux, host is i586 linux
>Description:
When using the "##" extension of variadic marcos, a spurious warning is generated. The preprocessor appears to emit correct output, but the warning causes the compilation to fail when using -Werror.
The warning is of the form:
/tmp/prepbug.c:14:3: warning: pasting "(" and ""my debug message: %s"" does not give a valid preprocessing token
The attached file causes this error to be emitted.
>How-To-Repeat:
gcc -E prepbug.c
>Fix:
Unknown :-)
>Release-Note:
>Audit-Trail:
>Unformatted: