1 // { dg-do compile { target c++17 } }
2 
3 struct S {
4   int i;
SS5   constexpr S() : i(5) {
6     ([*this] () { return i + 10; }());
7   }
8   constexpr operator int() const { return i; }
9 };
10 constexpr int x = S();
11