This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/44354] implied do loop with its own variable name as upper bound


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44354

--- Comment #24 from Mikael Morin <mikael at gcc dot gnu.org> 2012-07-26 08:54:02 UTC ---
Author: mikael
Date: Thu Jul 26 08:53:56 2012
New Revision: 189883

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189883
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/array_constructor_39.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]