https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95812
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Thomas Kथà¤nig <tkoe...@gcc.gnu.org>: https://gcc.gnu.org/g:2e4d807085a1cfd68ae79cb1abbe15114964a921 commit r10-8354-g2e4d807085a1cfd68ae79cb1abbe15114964a921 Author: Thomas Koenig <tkoe...@gcc.gnu.org> Date: Tue Jun 23 08:14:51 2020 +0200 Handle AR_FULL vs. AR_FULL in dependency checking. Previously, handling of full vs. full references failed to take AR_FULL vs. AR_FULL into account. A change in dependency checking in gcc 10 created a code path that could lead there; with this patch, this is now correctly handled. gcc/fortran/ChangeLog: 2020-06-23 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/95812 * dependency.c (ref_same_as_full_array): Handle case of AR_FULL vs. AR_FULL. gcc/testsuite/ChangeLog: 2020-06-23 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/95812 * gfortran.dg/dependency_59.f90: New test. (cherry picked from commit abcde0a658e17dbbabcb396eaae5a3612e07d401)