This is an archive of the discontinued LLVM Phabricator instance.

[flang] Refine semantic checks for procedure pointer assignment
ClosedPublic

Authored by klausler on Jul 13 2022, 11:41 AM.

Details

Summary

Some procedure pointers and EXTERNAL procedures have neither
explicit interfaces nor result types; these procedures are obviously
not known to be functions, but they could be, so semantics must not
assume that they are necessarily subroutines. Refine the procedure
pointer / dummy procedure compatibility check to handle these more
ambiguous cases and not elicit inappropriate error messages.

Diff Detail

Event Timeline

klausler created this revision.Jul 13 2022, 11:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2022, 11:41 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jul 13 2022, 11:41 AM
PeteSteinfeld accepted this revision.Jul 13 2022, 12:55 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jul 13 2022, 12:55 PM