]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.pt/ttp57.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp57.C
1 // Build don't link:
2 // Origin: Alex Samuel <samuel@codesourcery.com>
3
4 namespace NS
5 {
6
7 template <class T, int V>
8 struct Base
9 {
10 };
11
12 template <class T>
13 struct Z
14 {
15 const static int value_ = false;
16 };
17
18 template <class T>
19 struct A :
20 public Base <T, Z<T>::value_>
21 {
22 };
23
24 template <class T>
25 void f(T)
26 {
27 }
28
29 }
30
31
32 template <template <class T> class U>
33 struct B
34 {
35 };
36
37
38 int
39 main ()
40 {
41 B<NS::A> ba;
42 f (ba); // Koenig lookup
43 return 0;
44 }
45
This page took 1.006128 seconds and 5 git commands to generate.