1 // PR c++/78523 2 // { dg-do compile { target c++14 } } 3 4 int bar (); 5 6 void foo()7 foo () 8 { 9 const int t = bar (); 10 auto f = [=] (auto x) { return t; }; 11 f (0); 12 } 13