c++: hash table ICE with variadic alias [PR105003]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic181.C
blob0bb6fe7a8f339857f95d47c556d57e4701f7892f
1 // PR c++/99745
2 // { dg-do compile { target c++11 } }
4 template <typename... Ts>
5 struct S { int a : sizeof(Ts); };       // { dg-error "parameter packs not expanded with '\.\.\.':" }
6 S<int> s;                               // { dg-message "'Ts'" "" { target *-*-* } .-1 }
7 template <int... Ns>
8 struct T { int a : Ns; };               // { dg-error "parameter packs not expanded with '\.\.\.':" }
9 T<0> t;                                 // { dg-message "'Ns'" "" { target *-*-* } .-1 }