https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93701
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:56defe319186a21dc37e50db8d71185bce332506 commit r10-10108-g56defe319186a21dc37e50db8d71185bce332506 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Thu Jan 7 17:34:49 2021 +0000 Fortran: Improve resolution of associate variables. [PR93701]. 2021-01-07 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/93701 * resolve.c (find_array_spec): Put static prototype for resolve_assoc_var before this function and call for associate variables. gcc/testsuite/ PR fortran/93701 * gfortran.dg/associate_54.f90: New test. * gfortran.dg/associate_55.f90: New test. * gfortran.dg/associate_56.f90: New test. (cherry picked from commit 85fb1d7d5f44a81a52015d58ebe67765faabfd35)