Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
constexpr-dtor11.C
blob: e371f89a10efe826b070b676ed0d1a2e16f3d0c7 [
file
] [
log
] [
blame
]
// 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
{}();
}();
}