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
re PR c++/70343 (internal compiler error: in tsubst_copy, wrong code with lambda...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
lambda
/
lambda-70343.C
blob
209e207a0448f19558281e87f176b56563920ad8
1
// PR c++/70343
2
// { dg-do run { target c++11 } }
3
4
struct Empty{};
5
6
template<class T>
7
struct Data{
8
int x;
9
float y;
10
11
int properties_parcel4[10];
12
13
Empty j = [&](){
14
int i = 10;
15
properties_parcel4[0] = i;
16
return Empty();
17
}();
18
};
19
20
int main () {
21
Data<int> k;
22
23
return 0;
24
}