https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82271
Franz Sirl <sirl at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.5.4, 4.6.4, 4.7.4 Known to fail| |4.8.0, 4.8.5, 5.4.0, 6.4.0, | |7.2.0 --- Comment #1 from Franz Sirl <sirl at gcc dot gnu.org> --- I was slightly wrong, 4.7 works. Further testing shows that 4.5.4, 4.6.4 and 4.7.4 are OK, starting with 4.8.0 the loop gets miscompiled.