[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 7 00:59:00 GMT 2007
------- Comment #8 from pinskia at gcc dot gnu dot org 2007-03-07 00:58 -------
(In reply to comment #7)
> Is this code snippet related to this bug, or a new one entirely?
Actually the error message is fully correct in that case.
> $ gcc -o foo.o foo.c
> foo.c:4:1: error: pasting "alldone" and ":" does not give a valid preprocessing
> token
>
> However, if I use -E first, and compile the result, the snippet compiles
> properly,
I don't, I get an error even with -E on the mainline, 3.3.5, and 4.0.2:
gcc t.c -E -o t.i
t.c:4:1: error: pasting "alldone" and ":" does not give a valid preprocessing
token
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28709
More information about the Gcc-bugs
mailing list