https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111837
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:5ac63ec5da2e93226457bea4dbb3a4f78d5d82c2 commit r14-4688-g5ac63ec5da2e93226457bea4dbb3a4f78d5d82c2 Author: Harald Anlauf <anl...@gmx.de> Date: Mon Oct 16 21:02:20 2023 +0200 Fortran: out of bounds access with nested implied-do IO [PR111837] gcc/fortran/ChangeLog: PR fortran/111837 * frontend-passes.cc (traverse_io_block): Dependency check of loop nest shall be triangular, not banded. gcc/testsuite/ChangeLog: PR fortran/111837 * gfortran.dg/implied_do_io_8.f90: New test.