PR fortran/28129
commit185e0a111f8e3144bf8bbfb17dfbf43d509eda4c
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2006 20:37:36 +0000 (6 20:37 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Jul 2006 20:37:36 +0000 (6 20:37 +0000)
treec5099784f74aa94e9b972ca73a5b3802ca6c70fa
parenta6952e9d0a68b0b00dda3da3844ffbf4557fc955
PR fortran/28129

* trans-array.c (gfc_trans_array_bound_check): Add a locus
argument, and use it in the error messages.
(gfc_conv_array_index_offset): Donc perform bounds checking on
the last dimension of assumed-size arrays.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bounds_check_4.f90 [new file with mode: 0644]