https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98933
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
You just need to allocate and deallocate during the same constexpr evaluation.
So doing
constexpr int
foo ()
{
... std::construct_at(...);
...
... std::destroy_at(...);
...
return ...;
}
is fine, but not what you were trying to do, which is turn the transient
allocations into something permanent.
