diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-05-22 09:27:15 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-05-22 09:27:15 +0000 |
commit | c099916d6224e9775b4a43969901ed8688f32e5b (patch) | |
tree | 902c9ac4700d6fbdc15aa8bef964cdf2350134dd /gcc/tree-stdarg.c | |
parent | 0f869709401ddaf2fac3bb2fcd58f998a69fc8f4 (diff) | |
download | gcc-c099916d6224e9775b4a43969901ed8688f32e5b.zip gcc-c099916d6224e9775b4a43969901ed8688f32e5b.tar.gz gcc-c099916d6224e9775b4a43969901ed8688f32e5b.tar.bz2 |
re PR fortran/31627 ([4.1/4.2 only] -bounds-check doesn't check lower bound of assumed-sized array)
PR fortran/31627
* trans-array.c (gfc_trans_array_bound_check): Take extra argument to
indicate whether we should check the upper bound in that dimension.
(gfc_conv_array_index_offset): Check only the lower bound of the
last dimension for assumed-size arrays.
(gfc_conv_array_ref): Likewise.
(gfc_conv_ss_startstride): Likewise.
* gfortran.dg/bounds_check_7.f90: New test.
From-SVN: r124940
Diffstat (limited to 'gcc/tree-stdarg.c')
0 files changed, 0 insertions, 0 deletions