re PR fortran/32027 (The "DO" variable isn't consistent after loop)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 21 May 2007 22:02:26 +0000 (22:02 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 21 May 2007 22:02:26 +0000 (22:02 +0000)
commit244974bd1bb1e486361d7b4ec6fe686239e2e1f1
treec08086a86a965927acdec1f1d221c9d3afc7c69d
parent76dac339660714a2de931e371d89bc54a5cc9782
re PR fortran/32027 (The "DO" variable isn't consistent after loop)

PR fortran/32027

* trans-stmt.c (gfc_trans_do): Fix the value of loop variable
when the loop ends.

* gfortran.dg/do_3.F90: Add checks for the final value of the
loop variable.

From-SVN: r124923
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/do_3.F90