re PR fortran/28129 (gfortran -fbounds-check: Shows invalid array out of bounds error)
authorFrancois-Xavier Coudert <coudert@clipper.ens.fr>
Thu, 6 Jul 2006 20:37:36 +0000 (22:37 +0200)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 6 Jul 2006 20:37:36 +0000 (20:37 +0000)
commitd16b57dfef9dc93375b7606b6c36eece4ac877e4
treec5099784f74aa94e9b972ca73a5b3802ca6c70fa
parent50148301270cc7879ab3bf4338bbb22a96705ed0
re PR fortran/28129 (gfortran -fbounds-check: Shows invalid array out of bounds error)

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.

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