]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: error recovery on initializing invalid derived type array component
authorHarald Anlauf <anlauf@gmx.de>
Tue, 26 Oct 2021 18:51:46 +0000 (20:51 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 26 Oct 2021 18:51:46 +0000 (20:51 +0200)
commit99af0b2f0fe1c0dc8c6d558157e700326d52816a
tree529c76432524a22c6076c68c0cc2466f7b894045
parentc9bf4d4354b942af00193924cb59c4c6ab9cc4b5
Fortran: error recovery on initializing invalid derived type array component

gcc/fortran/ChangeLog:

PR fortran/102816
* resolve.c (resolve_structure_cons): Reject invalid array spec of
a DT component referenced in a structure constructor.

gcc/testsuite/ChangeLog:

PR fortran/102816
* gfortran.dg/pr102816.f90: New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr102816.f90 [new file with mode: 0644]