[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##
ahs3 at fc dot hp dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 7 18:43:00 GMT 2007
------- Comment #9 from ahs3 at fc dot hp dot com 2007-03-07 18:43 -------
Ah, my fault; I wasn't being clear. I still get the error message with -E,
that is true. However, the resulting code from cpp I thought was correct -- it
just produces what I thought was a normal C label, and if I ignore the error
message, I can compile the output from -E just fine. It seems to me that if
cpp no longer recognizes ##, then the message should say so ('deprecated cpp
token', or something); if cpp does recognize ##, then I don't think the error
message should be produced at all since the resulting tokens ('alldone:') are
valid C source.
If none of those are the case, what bit of info am I not understanding? And
I'm still not sure this is the same bug as the original report -- it seems
similar, but let me know if it's something different entirely.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28709
More information about the Gcc-bugs
mailing list