Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic-crash6.C
blob: 88009b765c21b4e5868c73035c5f22963cb2baf7 [
file
] [
log
] [
blame
]
// PR c++/99063
// { dg-do compile { target c++11 } }
template
<
typename
...
T
>
void
f
(
T
...
n
)
{
do
{
}
while
(--
n
);
// { dg-error "parameter packs not expanded with '...'" }
}
void
g
()
{
f
(
3
);
}