PR fortran/98307 - Dependency check fails when using "allocatable"
authorHarald Anlauf <anlauf@gmx.de>
Thu, 17 Dec 2020 09:31:55 +0000 (10:31 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 17 Dec 2020 09:31:55 +0000 (10:31 +0100)
commitc09deceb534b82ce144af3a345dcb06ab5e49ba4
tree5d9f001ddc5608e2c298a995ff54e48c87e02f0c
parent6f8486523f61bf0aa476dfa4197d1e3b71a0a8f3
PR fortran/98307 - Dependency check fails when using "allocatable"

The dependency check for FORALL constructs already handled pointer
components to derived types, but missed allocatables.  Fix that.

gcc/fortran/ChangeLog:

PR fortran/98307
* trans-stmt.c (check_forall_dependencies): Extend dependency
check to allocatable components of derived types.

gcc/testsuite/ChangeLog:

PR fortran/98307
* gfortran.dg/forall_19.f90: New test.
gcc/fortran/trans-stmt.c
gcc/testsuite/gfortran.dg/forall_19.f90 [new file with mode: 0644]