1 // PR c++/79005 2 // { dg-do compile { target c++14 } } 3 main()4int main() 5 { 6 auto glambda = [] (auto a) 7 { 8 const int c = a; 9 auto cglambda = [&] ( auto b ) 10 { 11 double result; 12 result = b * a; 13 result = b * c; 14 return result; 15 }; 16 cglambda ( 1 ); 17 a = c; 18 }; 19 20 glambda( 1 ); 21 } 22