About static string concatenation in GCC 4.5 with __FUNCTION__
Andrew Pinski
pinskia@gmail.com
Fri Mar 18 05:22:00 GMT 2011
2011/3/17 Juan Ramírez <juanantonio.ram@gmail.com>:
> 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__’
This has not worked in GCC since at least 3.4.0. Can you show the
version of where you tried?
Also this email should have gone to gcc-help@ instead of
gcc-regression@. Not many people read gcc-regression@ list as it is
supposed to be for automatic regression tester results.
Thanks,
Andrew Pinski
More information about the Gcc-regression
mailing list