blob: 5172bbca24b733a5ba98399f3e9f434da82df8b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// { dg-do assemble }
// Origin: Mark Mitchell <mark@codesourcery.com>
template <int T>
struct S {
struct X {};
struct Y {};
template <int U>
friend struct S<U>::X;
template <int U>
friend typename S<U>::Y; // { dg-error "" } typename as friend
};
struct T {
template <int T>
friend struct S<T>::X;
};
struct U {
template <int T>
friend typename S<T>::X; // { dg-error "" } typename as friend
};
|