https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98307
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:c09deceb534b82ce144af3a345dcb06ab5e49ba4 commit r11-6193-gc09deceb534b82ce144af3a345dcb06ab5e49ba4 Author: Harald Anlauf <anl...@gmx.de> Date: Thu Dec 17 10:31:55 2020 +0100 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.