diff options
Diffstat (limited to 'gcc/fortran/interface.c')
-rw-r--r-- | gcc/fortran/interface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c index dd1ac69..7b0c423 100644 --- a/gcc/fortran/interface.c +++ b/gcc/fortran/interface.c @@ -1455,6 +1455,13 @@ compare_actual_formal (gfc_actual_arglist ** ap, { if (new[i] != NULL) continue; + if (f->sym == NULL) + { + if (where) + gfc_error ("Missing alternate return spec in subroutine call at %L", + where); + return 0; + } if (!f->sym->attr.optional) { if (where) |