[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 00:50:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list