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-conv4.C
blob
66c09102d804bbf39c582bb528489d8300dd16e5
1
// PR c++/43641
2
// { dg-do compile { target c++11 } }
3
4
struct B
5
{
6
int i;
7
};
8
9
void func()
10
{
11
[](const B& b) -> const int& { return b.i; };
12
[](const B& b) { return b; };
13
}