https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93413
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED Target Milestone|--- |13.0 --- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> --- Fixed for GCC 13. The fix is probably unsuitable for backporting, and there are workarounds anyway -- one workaround is to turn the problematic class into a class template with an explicitly defaulted dtor, e.g. for the original testcase do: struct Base { constexpr virtual ~Base(){} }; template<class=void> struct Derived: Base { ~Derived() = default; }; constexpr Derived<> d;