This is an archive of the discontinued LLVM Phabricator instance.

[flang] Correct overriding (or not) of inaccessible bindings
ClosedPublic

Authored by klausler on May 16 2023, 1:46 PM.

Details

Summary

Fortran doesn't allow inaccessible procedure bindings to be
overridden, and this needs to apply to generic resolution.
When resolving a type-bound generic procedure from another
module, ensure only that the most extended override from its
module is used if it is PRIVATE, not a later apparent override
from another module.

Diff Detail

Event Timeline

klausler created this revision.May 16 2023, 1:46 PM
klausler requested review of this revision.May 16 2023, 1:46 PM
This revision is now accepted and ready to land.May 16 2023, 2:01 PM
This revision was landed with ongoing or failed builds.May 16 2023, 2:33 PM
This revision was automatically updated to reflect the committed changes.