blob: e371f89a10efe826b070b676ed0d1a2e16f3d0c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/102191
// { dg-do compile { target c++20 } }
struct X {
struct A {
constexpr ~A() noexcept(false) { }
};
constexpr A operator()(auto...) { return {}; }
};
void f() { []() consteval { X{}(); }(); }
|