This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##
- From: "ahs3 at fc dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 18:43:27 -0000
- Subject: [Bug preprocessor/28709] [4.0/4.1 regression] Bad diagnostic pasting tokens with ##
- References: <bug-28709-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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