summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ttp57.C
blob: 3fe33a851c212fc34dbc6738c792354ac614bc41 (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
// { 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;
};

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::A> ba; 
  f (ba);  // Koenig lookup
  return 0;
}