https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82550
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Dec 29 18:21:39 2018 New Revision: 267466 URL: https://gcc.gnu.org/viewcvs?rev=267466&root=gcc&view=rev Log: 2018-12-29 Paul Thomas <pa...@gcc.gnu.org> PR fortran/82550 * trans_decl.c (gfc_get_symbol_decl): Procedure symbols that have the 'used_in_submodule' attribute should be processed by 'gfc_get_extern_function_decl'. 2018-12-29 Paul Thomas <pa...@gcc.gnu.org> PR fortran/82550 * gfortran.dg/submodule_30.f08 : New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/submodule_30.f08 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/trans-decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog