https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68801
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-12-09 Component|c++ |middle-end Ever confirmed|0 |1 Known to fail| |4.8.5, 4.9.3, 5.3.0, 6.0 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- without the printf()s the function is inlined and thus t2 = 1 is constant propagated meaning that the address is forwarded which means results are botched (for unanalyzed reason).