]> gcc.gnu.org Git - gcc.git/commit
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>
Thu, 30 Sep 2021 19:14:18 +0000 (21:14 +0200)
commite3ad4c45d128c1f4a69f86116a36312aa593554c
tree390af7d9f86410a12fa3905c8efc89fdfbcb9d74
parent97a5a41dbfef1722fdaf4dc979e8b9c274b4404d
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.

(cherry picked from commit 2a1537a19cb2fa85823cfa18ed40baa4b259b4e3)
gcc/fortran/expr.c
gcc/testsuite/gfortran.dg/pr101327.f90 [new file with mode: 0644]
This page took 0.076231 seconds and 6 git commands to generate.