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/32036] Multiple evaluation of array index with bounds checking



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-07-14 23:59 -------
Subject: Bug 32036

Author: fxcoudert
Date: Sat Jul 14 23:59:00 2007
New Revision: 126647

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126647
Log:
        PR fortran/32036

        * trans-array.c (gfc_conv_array_ref): Only evaluate index once.

        * gfortran.dg/bounds_check_8.f90: New test.
        * gfortran.dg/do_iterator_2.f90: Make code legal Fortran.

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


-- 


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


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