summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/typedef38.C
blob: 445db17bd0817326de28698f1c4b588fba4079aa (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
// Origin: PR c++/46394
// { dg-options "-std=c++0x" }
// { dg-do compile }

template<class T>
struct S0
{
  typedef T type;
};

template<class... X>
struct S1
{
  typedef int I;
};

struct A
{
  template<class...U, class V=typename S1<typename S0<U>::type...>::I>
  A(U...u);
};

int
main()
{
  A a(1, 2);
}