1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-do assemble } template<class T> class A { public: operator const T*() const; const T* cast() const; }; template<class T> const T* A<T>::cast() const { return operator const T*(); } template class A<char>;