[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently

Eli Friedman eli.friedman at gmail.com
Wed Nov 30 19:24:45 PST 2011


On Wed, Nov 30, 2011 at 6:34 PM, Kostya Serebryany <kcc at google.com> wrote:
>
>
> On Wed, Nov 30, 2011 at 6:32 PM, Eli Friedman <eli.friedman at gmail.com>
> wrote:
>>
>> On Wed, Nov 30, 2011 at 6:21 PM, Kostya Serebryany <kcc at google.com> wrote:
>> > Hi,
>> > Here is one difference between clang and gcc which makes some of our
>> > software fail when built with clang.
>> > is this something you would consider fixing?
>>
>> No, we are not going to change the placement of the * in "const char
>> *foo".
>
>
> That's not about '*', but about  "[with T = int]"
> I don't think that there is any standard that exactly defines
> how __PRETTY_FUNCTION__ behaves, but having
> [with T = int]" might be useful.

Yes, it seems like it would be useful.

> (But yes, our code that relies on this is ... )

Yes.

-Eli




More information about the cfe-dev mailing list