This is an archive of the discontinued LLVM Phabricator instance.

[flang] Pointers returned from functions are not definable as pointers
ClosedPublic

Authored by klausler on Feb 11 2023, 12:37 PM.

Details

Summary

A reference to a pointer-valued function is a "variable" in the argot of
the Fortran standard, and can be the left-hand side of an assignment
statement or passed as a definable actual argument -- but it is not a
definable pointer, and cannot be associated with a pointer dummy argument
that is not INTENT(IN).

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2023, 12:37 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Feb 11 2023, 12:37 PM
vdonaldson accepted this revision.Feb 12 2023, 9:04 PM
This revision is now accepted and ready to land.Feb 12 2023, 9:04 PM