This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31119] -fbounds-check: Check for presence of optional arguments before bound checking
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2007 21:25:54 -0000
- Subject: [Bug fortran/31119] -fbounds-check: Check for presence of optional arguments before bound checking
- References: <bug-31119-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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