blob: 7f0d7aebb8627bbc7136af9e4ff361bb813ac627 [file] [log] [blame]
Douglas Gregord488b3a2011-10-26 17:53:41 +00001class X
2{
3 friend class A;
4};
5
6
7template <typename T1, typename T2>
8class B
9{
10};
11
12template <class T>
13struct C
14{
15};
16
17class D
18{
19 B<D, class A> x;
20 friend struct C<A>;
21};