Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}