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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-err3.C
blob
fec01acb6b60cd02339c9e7b84b756667b2d8229
1
// PR c++/51412
2
// { dg-do compile { target c++11 } }
3
4
void foo(int);
5
6
template<int> void bar()
7
{
8
foo([]{}...); // { dg-error "<lambda>" }
9
foo([]{}=0 ...); // { dg-error "<lambda>" }
10
}