https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85560
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|middle-end |tree-optimization Severity|normal |enhancement --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For C++, we can optimize away the code since r10-1052 (well it is turned on by default for all langauges at that point but later on turned on for C++ only in r10-7522).