https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42161
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Last reconfirmed|2009-12-01 19:47:50 |2023-3-20 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Most likely this optimization should only be done for -Os and maybe when the deconstructor does not have a definition in the TU (for inlining).