This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR27122 - requirements for defined operators


Paul,,

/* See if function is already resolved. */
--- 1237,1252 ----
need_full_assumed_size--;
if (sym && sym->ts.type == BT_CHARACTER
! && sym->ts.cl
! && sym->ts.cl->length == NULL)
! && !sym->attr.dummy
! && !sym->attr.contained)
{
/* Internal procedures are taken care of in resolve_contained_fntype. */
! gfc_error ("Function '%s' is declared CHARACTER(*) and cannot "
! "be used at %L since it is not a dummy argument",
! sym->name, &expr->where);
! return FAILURE;
}


The bracket after NULL is, of course, extraneous and resulted from a bit of "tidying up" before submission.

Cheers

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]