PR fortran/98284 - ICE in get_array_index
authorHarald Anlauf <anlauf@gmx.de>
Wed, 16 Dec 2020 16:25:06 +0000 (17:25 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Wed, 16 Dec 2020 16:25:06 +0000 (17:25 +0100)
commit5098d35fb1997aa6fd6d7e37d0fd4501a5fe2f9d
tree58c1f2ef83a5cb07aff1a77fc67d61c4a3458694
parent134afa38f0befc49f51747f3afe931fa4707c2f8
PR fortran/98284 - ICE in get_array_index

Reject DATA elements with the ALLOCATABLE attribute also when they are
components of a derived type.

gcc/fortran/ChangeLog:

PR fortran/98284
* resolve.c (check_data_variable): Reject DATA elements with the
ALLOCATABLE attribute.

gcc/testsuite/ChangeLog:

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