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-deduce3.C
blob
68ac29c9eac275bc904514298b0e8f542e568a50
1
// PR c++/69223
2
// { dg-do compile { target c++11 } }
3
4
template <class T> struct A
5
{
6
T x[20];
7
};
8
9
int main()
10
{
11
auto l = [](const A<int>& i){ return i; };
12
A<int> a;
13
14
l(a);
15
}