This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]