[cfe-dev] clang and gcc implement __PRETTY_FUNCTION__ differently

Nikola Smiljanic popizdeh at gmail.com
Mon Mar 19 13:45:07 PDT 2012


Sorry John, but I tried exactly this, with C having a template member
function and getInstantiatedFromMemberTemplate is called only once.

On Mon, Mar 19, 2012 at 7:28 PM, John McCall <rjmccall at apple.com> wrote:
>
> It's a bit contrived, but think deeply nested templates:
>
> template <class T> class A {
>  template <class U> class B {
>    template <class V> class C {
>    };
>  };
> };
>
> A<char>::B<char>::C<V> will be instantiated from A<char>::B<U>::C<V>, which will be instantiated from A<T>::B<U>::C<V>.
>
> John.




More information about the cfe-dev mailing list