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
blob209e207a0448f19558281e87f176b56563920ad8
1 // PR c++/70343
2 // { dg-do run { target c++11 } }
4 struct Empty{};
6 template<class T>
7 struct Data{
8     int x;
9     float y;
11     int properties_parcel4[10];
13     Empty j = [&](){
14                 int i = 10;
15                 properties_parcel4[0] = i;
16                 return Empty();
17     }();
20 int main () {
21     Data<int> k;
23   return 0;