https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68378
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2015-11-17 Component|c |middle-end Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- In GCC, there are two places where this optimization happens. One in the C++ front-end and once in the middle-end. Looks like the middle-end one is not doing it; only the one in the C++ front-end.