summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/vt-40092.C
blob: ecb69806130509a030653a2c5553a27c27563a74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// { dg-do compile }
// { dg-options "-std=c++0x" }

template <typename... Types> struct package {};

template <int ArgGen> struct wrapper_gen {};

template <int ArgNest> struct wrapper_nest
{
  typedef wrapper_gen<ArgNest> type_nest;
};

template <int... ArgPack>
struct wrapper_pack
{
  typedef package<wrapper_gen <ArgPack>...> type_pack;
  // incorrect error: expansion pattern 'wrapper_gen<ArgNest>'
  //    contains no argument packs
};