diff options
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index f6fb2b0..5d5ca78 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -4238,8 +4238,10 @@ resolve_symbol (gfc_symbol * sym) if (sym->attr.flavor == FL_PROCEDURE && sym->attr.function) { + /* The specific case of an external procedure should emit an error + in the case that there is no implicit type. */ if (!mp_flag) - gfc_set_default_type (sym, 0, NULL); + gfc_set_default_type (sym, sym->attr.external, NULL); else { /* Result may be in another namespace. */ |