https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82550
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Wed Oct 18 08:55:27 2017 New Revision: 253848 URL: https://gcc.gnu.org/viewcvs?rev=253848&root=gcc&view=rev Log: 2017-10-18 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'. 2017-10-18 Paul Thomas <pa...@gcc.gnu.org> PR fortran/82550 * gfortran.dg/submodule_30.f08 : New test. Added: trunk/gcc/testsuite/gfortran.dg/submodule_30.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c trunk/gcc/testsuite/ChangeLog