re PR fortran/86837 (Optimization breaks an unformatted read with implicit loop)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 24 Aug 2018 17:26:57 +0000 (17:26 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Fri, 24 Aug 2018 17:26:57 +0000 (17:26 +0000)
commit3413d168824e022555c8246095dfdea297b4c4cc
tree88e470a177f6b9dbc6b486d379ed245e99400a85
parent01aa3748261d9fa531b87f0c5701f5b7eb03a475
re PR fortran/86837 (Optimization breaks an unformatted read with implicit loop)

2018-08-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/86837
* frontend-passes.c (var_in_expr_callback): New function.
(var_in_expr): New function.
(traverse_io_block): Use var_in_expr instead of
gfc_check_dependency for checking if the variable depends on the
previous interators.

2018-08-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/86837
* gfortran.dg/implied_do_io_6.f90: New test.

From-SVN: r263838
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/implied_do_io_6.f90 [new file with mode: 0644]