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++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-ice16.C
blob
e94a0b6fa356a4b7306beab3e2b5cbb002a61a0b
1
// PR c++/70781
2
// { dg-do compile { target c++11 } }
3
4
template < typename T >
5
void foo ()
6
{
7
T ([=] (S) { [=] {}; }); // { dg-error "" }
8
}