This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cpp behaviour change


Hi,

I found out that this:

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

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.

	Falk



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]