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 00:49:51 -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 #7 from ahs3 at fc dot hp dot com 2007-03-07 00:49 -------
Is this code snippet related to this bug, or a new one entirely?
------------------------------------------------
#define LABEL(a, b) a##b##:
int main () {
LABEL(all,done)
return 0;
}
------------------------------------------------
If I compile it:
$ 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,
--
ahs3 at fc dot hp dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ahs3 at fc dot hp dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28709