When a procedure pointer with no interface is called by a
function reference, complain about the lack.
Differential Revision: https://reviews.llvm.org/D103573
DEREF(result.GetTypeAndShape()).type(),
ProcedureRef{std::move(proc), std::move(arguments)});
}
+ } else {
+ Say("Function result characteristics are not known"_err_en_US);
}
}
return std::nullopt;
!ERROR: Cannot call function 'f' like a subroutine
call f
!ERROR: Cannot call subroutine 's' like a function
+ !ERROR: Function result characteristics are not known
i = s()
contains
function f()