repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic-crash6.C
blob
88009b765c21b4e5868c73035c5f22963cb2baf7
1
// PR c++/99063
2
// { dg-do compile { target c++11 } }
3
4
template <typename... T>
5
void f (T... n)
6
{
7
do
8
{
9
}
10
while (--n); // { dg-error "parameter packs not expanded with '...'" }
11
}
12
13
void g ()
14
{
15
f(3);
16
}