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/31119] -fbounds-check: Check for presence of optional arguments before bound checking



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2007-09-18 21:25 -------
Subject: Bug 31119

Author: fxcoudert
Date: Tue Sep 18 21:25:40 2007
New Revision: 128587

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

        * trans-array.c (gfc_conv_ss_startstride): Only perform bounds
        checking for optional args when they are present.

        * gfortran.dg/bounds_check_9.f90: New test.
        * gfortran.dg/bounds_check_fail_2.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/bounds_check_9.f90
    trunk/gcc/testsuite/gfortran.dg/bounds_check_fail_2.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=31119


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