]> 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>
Sun, 7 Nov 2021 20:40:49 +0000 (21:40 +0100)
commit3371e7f18df52867b0b88966bd98d3f1eff6f815
treeaed4a980d35fcbf3f7af92c9e5cef3fecaf23f34
parentb1cab51131ad4d5501bf3f01e694704142a10c1a
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.

(cherry picked from commit 99af0b2f0fe1c0dc8c6d558157e700326d52816a)
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/pr102816.f90 [new file with mode: 0644]