re PR fortran/91471 (f951: internal compiler error: gfc_variable_attr(): Bad array...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 17 Aug 2019 14:23:10 +0000 (14:23 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Sat, 17 Aug 2019 14:23:10 +0000 (14:23 +0000)
commit4f81c2a3c54d8ea9ebd7c703eef9f6d09088eb29
treeed13385cd80efbcefdd9826bfb5250862c4a9815
parent1e67491a0db526fa3137cf6576dde13cd785d364
re PR fortran/91471 (f951: internal compiler error: gfc_variable_attr(): Bad array reference)

2019-08-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91471
* primary.c (gfc_variable_attr): Remove a gfc_internal_error(),
which cannot be reached by conforming Fortran code, but seems to
be reachable from nonconforming Fortran code.  Treat the AR_UNKNOWN
case as a no-op.

2019-08-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91471
* gfortran.dg/pr91471.f90: New test.

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