https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117827
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unknown |15.0 CC| |jakub at gcc dot gnu.org Last reconfirmed| |2024-12-02 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Slightly adjusted testcase: struct C { int c; static int d, e; C () : c (0) { ++d; } C (const C &) = delete; C &operator= (const C &) = delete; ~C () { ++e; } }; int C::d, C::e; C * foo (C *p) { delete[] p; throw 1; } int main () { try { foo (new C[1] {}); } catch (...) { } if (C::d != C::e) __builtin_abort (); }