re PR fortran/19777 (-fbounds-check catches non-existent bounds violation)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Mon, 29 May 2006 19:21:27 +0000 (21:21 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 29 May 2006 19:21:27 +0000 (19:21 +0000)
commita64a81baf6ef02cd3d474d5eb20a1d28a45f7290
tree72679f07b58b86bfa69a3e753279e179052931f9
parent944caafcb8dffa37c940620c23e75e381c574248
re PR fortran/19777 (-fbounds-check catches non-existent bounds violation)

PR fortran/19777

* trans-array.c (gfc_conv_array_ref): Perform out-of-bounds
checking for assumed-size arrrays for all but the last dimension.

* gfortran.dg/bounds_check_2.f: Add new check for multidimensional
arrays.

From-SVN: r114210
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bounds_check_2.f