https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115805
--- Comment #4 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Filip Kastl from comment #3) > I've just tried this on some older commits but still didn't find a commit > without this behavior so I don't have evidence that this is a regression. > The oldest commit I know where this behavior is present is > r14-5791-g24592abd68e6ef. > > I'm not sure how I would reduce this. I don't know Fortran so I don't think > I could reduce this manually and I also don't know how I would use automated > tools to reduce this. You can use cvise with Fortran and use Valgrind or so to try stop it introducing UB, but I admit that I don't know Fortran either, and I don't know how likely it is to introduce a mess. With C and C++, I've learned how to use it effectively for runtime testcases, I dunno about Fortran.