This is the mail archive of the gcc-regression@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]
Other format: [Raw text]

Re: About static string concatenation in GCC 4.5 with __FUNCTION__


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


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