https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64933
--- Comment #5 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Fri Nov 4 19:23:44 2016 New Revision: 241860 URL: https://gcc.gnu.org/viewcvs?rev=241860&root=gcc&view=rev Log: 2016-04-19 Paul Thomas <pa...@gcc.gnu.org> PR fortran/64933 * primary.c (gfc_match_varspec): If selector expression is unambiguously an array, make sure that the associate name is an array and has an array spec. Modify the original condition for doing this to exclude character types. 2016-04-19 Paul Thomas <pa...@gcc.gnu.org> PR fortran/64933 * gfortran.dg/associate_23.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/associate_23.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/primary.c trunk/gcc/testsuite/ChangeLog