[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently

Joerg Sonnenberger joerg at britannica.bec.de
Sun Dec 18 08:44:16 PST 2011


On Sun, Dec 18, 2011 at 05:01:54PM +0100, Nikola Smiljanic wrote:
> But what about
> 
> template<class T>
> const char *foo() {
>   T t();
>   std::cout << t;
> 
>   return __PRETTY_FUNCTION__;
> }

That's not valid, is it? E.g. the function doesn't result in
non-conflicting specialisations, does it?

Joerg



More information about the cfe-dev mailing list