re PR fortran/44354 (implied do loop with its own variable name as upper bound)
authorMikael Morin <mikael@gcc.gnu.org>
Thu, 26 Jul 2012 08:53:56 +0000 (08:53 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Thu, 26 Jul 2012 08:53:56 +0000 (08:53 +0000)
commitb63b1f862611aa41662d7cd7027d040dc6682f57
treed21fdd8c66cb49708b7bfb8eb3be677f1dec8cb3
parentca27d5aebd6c4a4fb2776f2924da621c26b5fd1a
re PR fortran/44354 (implied do loop with its own variable name as upper bound)

fortran/
PR fortran/44354
* trans-array.c (gfc_trans_array_constructor_value):
Evaluate the iteration bounds before the inner variable shadows
the outer.

testsuite/
PR fortran/44354
* gfortran.dg/array_constructor_39.f90: New test.

From-SVN: r189883
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/array_constructor_39.f90 [new file with mode: 0644]