redeclarations.h 175 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 class X { friend class A; }; template <typename T1, typename T2> class B { }; template <class T> struct C { }; class D { B<D, class A> x; friend struct C<A>; };