fortran/
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2012 08:47:33 +0000 (08:47 +0000)
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2012 08:47:33 +0000 (08:47 +0000)
commit487dc8b20bb4c0c4845128793c566901ba2752ed
tree97e486c2daffd632033804f16913b8ac71d1320e
parent00d2268fef9d80ea5ccc68a505bd5f5cb82f46e6
fortran/
PR fortran/44354
* array.c (sought_symbol): New variable.
(expr_is_sought_symbol_ref, find_symbol_in_expr): New functions.
(resolve_array_list): Check for references to the induction
variable in the iteration bounds and issue a diagnostic if some
are found.

testsuite/
PR fortran/44354
* gfortran.dg/array_constructor_38.f90: New test.

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