blob: 70197eb052c50020e5fe003539d2ca5d0b3b36ea [file] [log] [blame]
// PR c++/82613
// { dg-do compile }
template <typename T> class B;
class A {
friend class B<A>;
class Type {};
};
template <typename T>
class B : T::Type { protected: class Type {}; };
B<A> b;
template <typename T>
class C : B<T>::Type, B<T> {};
C<A> c;