https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61252
--- Comment #2 from hazeman11 at gmail dot com --- Yep sorry for so "stupid" example. I've reduced it to bare minimum without looking whether it does make sense. Ofcourse something like maxstep = std::min(std::min(a0[i],a1[i]),maxstep); would make much more sense. Inside of my original loop ( where i've spotted the problem ) was much much larger.