diff options
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 1c7b5fb..d4d5eb9 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -488,10 +488,12 @@ resolve_formal_arglist (gfc_symbol *proc) continue; } - if (sym->attr.intent == INTENT_UNKNOWN) + /* Fortran 2008 Corrigendum 1, C1290a. */ + if (sym->attr.intent == INTENT_UNKNOWN && !sym->attr.value) { gfc_error ("Argument '%s' of elemental procedure '%s' at %L must " - "have its INTENT specified", sym->name, proc->name, + "have its INTENT specified or have the VALUE " + "attribute", sym->name, proc->name, &sym->declared_at); continue; } |