cpp behaviour change

Falk Hueffner falk.hueffner@student.uni-tuebingen.de
Wed Jun 21 16:42:00 GMT 2000


I found out that this:

#define FOO(V) printf("baz " ## #V);

will be converted by cpp 2.96 to

printf("baz "#bar);;

while 2.95.2 produced

printf("baz ""bar"); ;

Can anybody tell me which behaviour is correct? I understood that the
## would only be regarded in a "second pass", and then eat up all
whitespace to the left and right, so 2.95.2 seems to be correct.


More information about the Gcc-bugs mailing list