This is the mail archive of the
gcc-regression@gcc.gnu.org
mailing list for the GCC project.
Re: About static string concatenation in GCC 4.5 with __FUNCTION__
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Juan RamÃrez <juanantonio dot ram at gmail dot com>
- Cc: gcc-regression at gcc dot gnu dot org
- Date: Thu, 17 Mar 2011 22:22:01 -0700
- Subject: Re: About static string concatenation in GCC 4.5 with __FUNCTION__
- References: <AANLkTimZ-pX=NBgvUnDu0iUjEbsyyyHSV4_-QPVe7G4P@mail.gmail.com> <AANLkTinXHfisZ6ivGo29oMPjLShmgSBC=Av-6ypU3EQm@mail.gmail.com> <AANLkTinsSVmDjAhe4GDCmqzoybZtsYohWwF2rqdeN3mm@mail.gmail.com>
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