https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107500
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. making the dtor constexpr doesn't change anything. Unsurprising, since that just says it's usable in constant expressions, it doesn't mean the destructor is trivial and can be elided. Worth a try though.