https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66762
--- Comment #12 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Fri Nov 20 14:50:35 2015 New Revision: 230661 URL: https://gcc.gnu.org/viewcvs?rev=230661&root=gcc&view=rev Log: 2015-11-20 Paul Thomas <pa...@gcc.gnu.org> PR fortran/68237 * decl.c (gfc_match_submod_proc): Test the interface symbol before accessing its attributes. 2015-11-20 Steven G. Kargl <ka...@gcc.gnu.org> PR fortran/66762 (gfc_get_symbol_decl): Test for attr.used_in_submodule as well as attr.use_assoc (twice). (gfc_create_module_variable): Ditto. 2015-11-20 Paul Thomas <pa...@gcc.gnu.org> PR fortran/68237 * gfortran.dg/submodule_12.f90: New test PR fortran/66762 * gfortran.dg/submodule_6.f90: Add compile option -flto. Added: trunk/gcc/testsuite/gfortran.dg/submodule_12.f08 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/fortran/trans-decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/submodule_6.f08