https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65359
janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|NEW |RESOLVED CC| |janus at gcc dot gnu.org Known to work| |8.2.0 Resolution|--- |FIXED Known to fail| |7.3.0 --- Comment #2 from janus at gcc dot gnu.org --- With 8.2.0 and trunk I get the correct output 1st: -100 -100 -200 -200 2nd: -100 -100 -200 -200 3rd: 91 92 93 94 4th: 91 92 93 94 without any valgrind errors. Apparently this has been fixed.