https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118352
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Last reconfirmed| |2025-01-08 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think the fix is to change resolves_to_fixed_type_p to check if there is a virtual dtor and if it is final if !CLASSTYPE_FINAL. I will try this for GCC 16.