1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// { dg-do assemble } // Origin: Mark Mitchell <mark@codesourcery.com> template <class T> class C { template <class U> friend class ::C; }; namespace N { template <class T> class D { template <class U> friend class N::D; }; }