OSDN Git Service

PR c++/49418
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / typedef16.C
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/26693 
3 // { dg-do compile }
4
5 struct C0
6 {
7 };
8
9 template<class T, class U>
10 struct C1
11 {
12     typedef C0 TypedefedC0;
13
14     template<class W>
15     void foo (TypedefedC0 *, W)
16     {
17     }
18
19     template<class W>  C1 (W w)
20     {
21         TypedefedC0 c;
22         foo (&c, w);
23     }
24
25 };
26 C0 c0;
27 C1<int, char> c1 (&c0);