https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71885
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |trippels at gcc dot gnu.org Resolution|--- |INVALID --- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- See https://gcc.gnu.org/gcc-6/porting_to.html (More aggressive optimization of -flifetime-dse). You're invoking undefined behavior; -flifetime-dse=1 is a workaround.