https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118726
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|deconstructor for variable |[12/13/14/15 Regression] |definition in the condition |deconstructor for variable |of a for loop is too soon |definition in the condition | |of a for loop is too soon Known to fail|4.8.4, 4.9.0 | --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I do think we can declare this a regression though with the original testcase, because before GCC 5, there was no miscompiling (even though it was latent). If someone else disagrees I am ok with that too.