This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix checking of TBP bindings
ClosedPublic

Authored by klausler on Mar 9 2023, 4:35 PM.

Details

Summary

Non-DEFERRED procedure binding checking can't blindly accept
all procedures defined in modules -- they can't be ABSTRACT
interfaces. And GetUltimate() must be used rather than
FindSubprogram(); the latter will resolve to a procedure's
interface in the case of "procedure(interface) :: external",
not "external".

Diff Detail

Event Timeline

klausler created this revision.Mar 9 2023, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2023, 4:35 PM
klausler requested review of this revision.Mar 9 2023, 4:35 PM
vdonaldson accepted this revision.Mar 10 2023, 9:23 AM
This revision is now accepted and ready to land.Mar 10 2023, 9:23 AM
This revision was automatically updated to reflect the committed changes.