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