https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79402
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Thu Oct 19 17:54:58 2017 New Revision: 253908 URL: https://gcc.gnu.org/viewcvs?rev=253908&root=gcc&view=rev Log: 2017-10-19 Paul Thomas <pa...@gcc.gnu.org> PR fortran/79402 * resolve.c (fixup_unique_dummy): New function. (gfc_resolve_expr): Call it for dummy variables with a unique symtree name. 2017-10-19 Paul Thomas <pa...@gcc.gnu.org> PR fortran/79402 * gfortran.dg/submodule_23.f90: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/submodule_23.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/resolve.c branches/gcc-6-branch/gcc/testsuite/ChangeLog