This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch inconsistent function/subroutine usage of procedure pointer components
ClosedPublic

Authored by klausler on Oct 27 2022, 5:35 PM.

Details

Summary

When a derived type has a procedure pointer component with no interface,
we can't do a lot of checking on its call sites, but we can at least require
that the same procedure pointer component be used consistently as either
a function or as a subroutine, but not both.

Diff Detail

Event Timeline

klausler created this revision.Oct 27 2022, 5:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 5:35 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 27 2022, 5:35 PM
vdonaldson accepted this revision.Oct 27 2022, 6:20 PM
This revision is now accepted and ready to land.Oct 27 2022, 6:20 PM