repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86200 - ICE with unexpanded pack in lambda parameter.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-variadic7.C
blob
c5355b0a8d8935deb18f6c90e9c817322fcaa09f
1
// PR c++/86200
2
// { dg-do compile { target c++11 } }
3
4
template<typename ... Args>
5
static void foo()
6
{
7
[](Args, int x) {
8
x;
9
}; // { dg-error "packs not expanded" }
10
}
11
int main()
12
{
13
foo();
14
}