1 // PR c++/61857 2 // { dg-do compile { target c++14 } } 3 4 struct A { AA5 A(int val) {} 6 }; 7 8 A a{ [x=123]{ return x; }() }; 9