blob: 4a3188c8ffbfaae89bd67f1136799d2c86e8dddc (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
// { dg-do assemble }
// Origin: Alex Samuel <samuel@codesourcery.com>
namespace NS
{
template <class T, int V>
struct Base
{
};
template <class T>
struct Z
{
const static int value_ = false;
};
struct Outer
{
template <class T>
struct A :
public Base <T, Z<T>::value_>
{
};
};
template <class T>
void f(T)
{
}
}
template <template <class T> class U>
struct B
{
};
int
main ()
{
B<NS::Outer::A> ba;
f (ba); // Koenig lookup
return 0;
}
|