re PR fortran/31119 (-fbounds-check: Check for presence of optional arguments before...
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 18 Sep 2007 21:25:40 +0000 (21:25 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Tue, 18 Sep 2007 21:25:40 +0000 (21:25 +0000)
commita50ba82d5881be3796d3a9054092dfd4a615bcfa
tree840b670afbca3676c80e2e73b02d1cc9ae3a0c25
parentbf962a2a455efcd5b1afe2df85374db48165ef1a
re PR fortran/31119 (-fbounds-check: Check for presence of optional arguments before bound checking)

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.

From-SVN: r128587
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bounds_check_9.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bounds_check_fail_2.f90 [new file with mode: 0644]