https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79676
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Mar 18 12:38:02 2017 New Revision: 246256 URL: https://gcc.gnu.org/viewcvs?rev=246256&root=gcc&view=rev Log: 2017-03-18 Paul Thomas <pa...@gcc.gnu.org> PR fortran/79676 * module.c (mio_symbol_attribute): Remove reset of the flag 'no_module_procedures'. (check_for_module_procedures): New function. Move declaration of 'no_module_procedures' to above it. (gfc_dump_module): Traverse namespace calling new function. 2017-03-18 Paul Thomas <pa...@gcc.gnu.org> PR fortran/79676 * gfortran.dg/submodule_28.f08 : New test. Added: trunk/gcc/testsuite/gfortran.dg/submodule_28.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/module.c trunk/gcc/testsuite/ChangeLog