https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99598
Bug ID: 99598 Summary: Commits are not transferred to bugzilla Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: web Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- See https://gcc.gnu.org/pipermail/gcc-cvs/2021-March/343081.html , which is not distributed to bugzilla and the gcc-bugs mailing list, despite the ChangeLog entry reading Handle EXEC_IOLENGTH in doloop_contained_procedure_code. This rather obvious patch fixes an ICE on valid which came about because I did not handle EXEC_IOLENGTH as start of an I/O statement when checking for the DO loop variable. This is an 11 regression. gcc/fortran/ChangeLog: PR fortran/99345 * frontend-passes.c (doloop_contained_procedure_code): Properly handle EXEC_IOLENGTH. gcc/testsuite/ChangeLog: PR fortran/99345 * gfortran.dg/do_check_16.f90: New test. * gfortran.dg/do_check_17.f90: New test.