https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118262
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Summary|gcc does not error on |gcc does not error on |inaccessible potentially |inaccessible defaulted |invoked destructor on |destructor on dynamic |dynamic initialization of |initialization of an object |an object array |array Last reconfirmed| |2025-01-01 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. Related to the old bug 54812 where GCC ignored if the inaccessable defaulted deconstructor.