re PR fortran/56852 (ICE on invalid: "Bad array reference" for an undeclared loop...
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 9 Apr 2015 19:37:57 +0000 (19:37 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 9 Apr 2015 19:37:57 +0000 (19:37 +0000)
commitbf1b77dd092bb694be6fb0b1fcc369327db6143f
tree4c453d0397ef71ae8bf5dd7ebf86b1a311c6f1a1
parent86c5a5c3bba487a03c0288c912641275e3df812b
re PR fortran/56852 (ICE on invalid: "Bad array reference" for an undeclared loop variable)

2013-04-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56852
* primary.c (gfc_variable_attr): Avoid ICE on AR_UNKNOWN if any
of the index variables are untyped and errors are present.

2013-04-09  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/56852
* gfortran.dg/pr56852.f90 : New test

From-SVN: r221955
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr56852.f90 [new file with mode: 0644]