https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91588
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Sep 28 15:48:35 2019 New Revision: 276252 URL: https://gcc.gnu.org/viewcvs?rev=276252&root=gcc&view=rev Log: 2019-09-28 Paul Thomas <pa...@gcc.gnu.org> Backport from mainline PR fortran/91588 * expr.c (check_inquiry): Remove extended component refs by using symbol pointers. If a function argument is an associate variable with a constant target, copy the target expression in place of the argument expression. Check that the charlen is not NULL before using the string length. 2019-09-28 Paul Thomas <pa...@gcc.gnu.org> Backport from mainline PR fortran/91588 * gfortran.dg/associate_49.f90 : New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_49.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/expr.c branches/gcc-8-branch/gcc/testsuite/ChangeLog