Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/variadic181.C

raw
1 // PR c++/99745
2 // { dg-do compile { target c++11 } }
3
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 }