Fortran - improve error recovery determining array element from constructor
authorHarald Anlauf <anlauf@gmx.de>
Tue, 7 Sep 2021 18:51:49 +0000 (20:51 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 7 Sep 2021 18:51:49 +0000 (20:51 +0200)
commit2a1537a19cb2fa85823cfa18ed40baa4b259b4e3
tree92a691c3ad47e1b42ea7cf0d8109332a5890db28
parent849d5f5929fc1e480aa6d385976810d2b1319755
Fortran - improve error recovery determining array element from constructor

gcc/fortran/ChangeLog:

PR fortran/101327
* expr.c (find_array_element): When bounds cannot be determined as
constant, return error instead of aborting.

gcc/testsuite/ChangeLog:

PR fortran/101327
* gfortran.dg/pr101327.f90: New test.
gcc/fortran/expr.c
gcc/testsuite/gfortran.dg/pr101327.f90 [new file with mode: 0644]