re PR fortran/33254 (Diagnose different string lengths in array constructors at run...
authorTobias Schlüter <tobi@gcc.gnu.org>
Sat, 13 Oct 2007 21:43:49 +0000 (23:43 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Sat, 13 Oct 2007 21:43:49 +0000 (23:43 +0200)
commit08ddab21215fba57be1ebdb495b9374953a6b679
tree6b594a4e30b35f8484ca497241d85bc81bf45595
parentca94e524220617cadc4b32290474c50a0964fd46
re PR fortran/33254 (Diagnose different string lengths in array constructors at run time)

2007-10-13  Tobias Schlueter  <tobi@gcc.gnu.org>
    Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33254
PR fortran/33727
fortran/
* trans-array.c (get_array_ctor_var_strlen): Check upper bound for
constness instead of lower bound.
(get_array_ctor_strlen): Add bounds-checking code.
testsuite/
* bounds_check_10.f90: New.

Co-Authored-By: Paul Thomas <pault@gcc.gnu.org>
From-SVN: r129286
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bounds_check_10.f90 [new file with mode: 0644]