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

Reply via email to