OSDN Git Service

PR c++/54858
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / typedef38.C
1 // Origin: PR c++/46394
2 // { dg-options "-std=c++0x" }
3 // { dg-do compile }
4
5 template<class T>
6 struct S0
7 {
8   typedef T type;
9 };
10
11 template<class... X>
12 struct S1
13 {
14   typedef int I;
15 };
16
17 struct A
18 {
19   template<class...U, class V=typename S1<typename S0<U>::type...>::I>
20   A(U...u);
21 };
22
23 int
24 main()
25 {
26   A a(1, 2);
27 }