About static string concatenation in GCC 4.5 with __FUNCTION__
Juan Ramírez
juanantonio.ram@gmail.com
Thu Mar 17 13:16:00 GMT 2011
Hi
I have a program that puts some lines in the log by doing something like this:
log("Hello from " __FUNCTION__ " Have a nice day");
This works in all versions gcc <= 4.4 but I've just upgraded to gcc
4.5 and this does not work anymore:
error: expected ‘)’ before ‘__FUNCTION__’
I was not sure if this should be posted on gcc-regressions, so I
posted it on gcc-help a few days ago but got no answer, that's why now
I'm posting here.
Thanks a lot
Saludos!
Juan
PS:
[juan@j-vaio sources]$ gcc --version
gcc (GCC) 4.5.2
More information about the Gcc-regression
mailing list