https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79676
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Apr 1 09:35:52 2017 New Revision: 246631 URL: https://gcc.gnu.org/viewcvs?rev=246631&root=gcc&view=rev Log: 2017-04-01 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk 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-04-01 Paul Thomas <pa...@gcc.gnu.org> Backport from trunk PR fortran/79676 * gfortran.dg/submodule_28.f08 : New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/submodule_28.f08 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/module.c branches/gcc-6-branch/gcc/testsuite/ChangeLog