https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86372
--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Mon Oct 8 13:02:36 2018 New Revision: 264925 URL: https://gcc.gnu.org/viewcvs?rev=264925&root=gcc&view=rev Log: 2018-10-08 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/86372 * trans-stmt.c (trans_associate_var): Character associate names with variable string length do not have to be deferred length for the string length to be set, if variable. 2018-10-08 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/86372 * gfortran.dg/associate_41.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_41.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/trans-stmt.c branches/gcc-8-branch/gcc/testsuite/ChangeLog