1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// { dg-do assemble } // Origin: Matt Austern <austern@isolde.engr.sgi.com> class A { public: static void f(); }; template <class T> class B : public A { friend void A::f(); }; template <class T> class C : public B<T> { }; template class C<char>;