https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66993
--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Thu Sep 10 15:22:20 2015 New Revision: 227648 URL: https://gcc.gnu.org/viewcvs?rev=227648&root=gcc&view=rev Log: 2015-09-10 Paul Thomas <pa...@gcc.gnu.org> PR fortran/66993 * module.c (read_module): If a symtree exists and the symbol has been associated in a submodule from a parent (sub)module, attach the symbol to a 'unique symtree' and the new symbol to the existing symtree. 2015-09-10 Paul Thomas <pa...@gcc.gnu.org> PR fortran/66993 * gfortran.dg/submodule_11.f08: New test. Added: trunk/gcc/testsuite/gfortran.dg/submodule_11.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/module.c trunk/gcc/testsuite/ChangeLog