https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35339
--- Comment #12 from Nicolas Koenig <koenigni at gcc dot gnu.org> --- Author: koenigni Date: Mon Jun 5 12:35:11 2017 New Revision: 248877 URL: https://gcc.gnu.org/viewcvs?rev=248877&root=gcc&view=rev Log: 2017-06-05 Nicolas Koenig <koeni...@student.ethz.ch> PR fortran/35339 * frontend-passes.c (traverse_io_block): New function. (simplify_io_impl_do): New function. (optimize_namespace): Invoke gfc_code_walker with simplify_io_impl_do. 2017-06-05 Nicolas Koenig <koeni...@student.ethz.ch> PR fortran/35339 * gfortran.dg/implied_do_io_1.f90: New Test. * gfortran.dg/implied_do_io_2.f90: New Test. Added: trunk/gcc/testsuite/gfortran.dg/implied_do_io_1.f90 trunk/gcc/testsuite/gfortran.dg/implied_do_io_2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/frontend-passes.c trunk/gcc/testsuite/ChangeLog