https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63184
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Known to work| |6.1.0 Resolution|--- |FIXED Target Milestone|9.0 |6.0 --- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> --- It happens that we optimize both cases now (with optimization only). Would be still a regression vs. GCC 4.7 at -O0 but IMHO we shouldn't care about optimizing this at -O0. Thus fixed. I'll add the testcases.