2008-01-08 Paul Thomas <pault@gcc.gnu.org>
commit43b3b93d35729f16cd4845718516c7429f61d93d
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jan 2008 15:14:33 +0000 (8 15:14 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jan 2008 15:14:33 +0000 (8 15:14 +0000)
tree428f9813996262ab2e07f6030752e8726adc9784
parent1172203c022501bc10bdd485e87460378d3f37ec
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.

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