re PR fortran/34476 (Parameters: Bogus out of bounds error in array constructor)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 8 Jan 2008 15:14:33 +0000 (15:14 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 8 Jan 2008 15:14:33 +0000 (15:14 +0000)
commit0c6ce8b02716646c4ecf998a96c40621a5cba15e
tree428f9813996262ab2e07f6030752e8726adc9784
parent3672065a1dc197ed785e6b1ffae1449621c5e3d2
re PR fortran/34476 (Parameters: Bogus out of bounds error in array constructor)

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34476
* expr.c (find_array_element): Check that the array bounds are
constant before using them.  Use lower, as well as upper bound.
(check_restricted): Allow implied index variable.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34476
* gfortran.dg/parameter_array_init_3.f90: New test.

From-SVN: r131396
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/parameter_array_init_3.f90 [new file with mode: 0644]