diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2015-11-20 14:50:35 +0000 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2015-11-20 14:50:35 +0000 |
commit | cded791923589322b993c18c19179d601943df87 (patch) | |
tree | f8729d6392d23ecf7ed26cc71ed090142cf675a0 /gcc/fortran/decl.c | |
parent | 3be962317494f61771391c828558a240e3f37e19 (diff) | |
download | gcc-cded791923589322b993c18c19179d601943df87.zip gcc-cded791923589322b993c18c19179d601943df87.tar.gz gcc-cded791923589322b993c18c19179d601943df87.tar.bz2 |
[multiple changes]
2015-11-20 Paul Thomas <pault@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 <kargl@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 <pault@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.
From-SVN: r230661
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 6d76a7f..c4ce18b 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -7666,7 +7666,7 @@ gfc_match_submod_proc (void) /* Make sure that the result field is appropriately filled, even though the result symbol will be replaced later on. */ - if (sym->ts.interface->attr.function) + if (sym->ts.interface && sym->ts.interface->attr.function) { if (sym->ts.interface->result && sym->ts.interface->result != sym->ts.interface) |