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/31627] -bounds-check doesn't check lower bound of assumed-sized array



------- Comment #2 from fxcoudert at gcc dot gnu dot org  2007-05-22 10:27 -------
Subject: Bug 31627

Author: fxcoudert
Date: Tue May 22 09:27:15 2007
New Revision: 124940

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

        * trans-array.c (gfc_trans_array_bound_check): Take extra argument to
        indicate whether we should check the upper bound in that dimension.
        (gfc_conv_array_index_offset): Check only the lower bound of the
        last dimension for assumed-size arrays.
        (gfc_conv_array_ref): Likewise.
        (gfc_conv_ss_startstride): Likewise.

        * gfortran.dg/bounds_check_7.f90: New test.

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


-- 


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


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