1 2 3 4 5 6 7 8 9 10
// { dg-do compile { target c++17 } } void f(int i) { [i]() constexpr { int j; // { dg-error "uninitialized" "" { target c++17_down } } j = i; return j; }(); }