diff options
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 4a566a9..2b763d2 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -2407,8 +2407,7 @@ gfc_match_entry (void) || gfc_add_function (&entry->attr, entry->name, NULL) == FAILURE) return MATCH_ERROR; - entry->result = proc->result; - + entry->result = entry; } else { @@ -2423,6 +2422,8 @@ gfc_match_entry (void) || gfc_add_function (&entry->attr, result->name, NULL) == FAILURE) return MATCH_ERROR; + + entry->result = result; } if (proc->attr.recursive && result == NULL) |