blob: 0bb6fe7a8f339857f95d47c556d57e4701f7892f [file] [log] [blame]
// PR c++/99745
// { dg-do compile { target c++11 } }
template <typename... Ts>
struct S { int a : sizeof(Ts); }; // { dg-error "parameter packs not expanded with '\.\.\.':" }
S<int> s; // { dg-message "'Ts'" "" { target *-*-* } .-1 }
template <int... Ns>
struct T { int a : Ns; }; // { dg-error "parameter packs not expanded with '\.\.\.':" }
T<0> t; // { dg-message "'Ns'" "" { target *-*-* } .-1 }