FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp57.C
blob7c7c9386f8a5532159461700b66043e0ec57ed02
1 // Build don't link:
2 // Origin: Alex Samuel <samuel@codesourcery.com>
4 namespace NS 
5
7 template <class T, int V>
8 struct Base
12 template <class T>
13 struct Z
15   const static int value_ = false;
18 template <class T>
19 struct A : 
20   public Base <T, Z<T>::value_>
22 }; 
24 template <class T> 
25 void f(T)
32 template <template <class T> class U> 
33 struct B 
38 int 
39 main ()
41   B<NS::A> ba; 
42   f (ba);  // Koenig lookup
43   return 0;