https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90498
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Mon Jun 10 05:48:44 2019 New Revision: 272103 URL: https://gcc.gnu.org/viewcvs?rev=272103&root=gcc&view=rev Log: 2019-06-10 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/90498 * trans-stmt.c (trans_associate_var) Do not use the saved descriptor if the expression is a COMPONENT_REF. 2019-06-10 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/90498 * gfortran.dg/associate_48.f90 : New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_48.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