This is an archive of the discontinued LLVM Phabricator instance.

[flang] Respect inaccessibility of type-bound ASSIGNMENT(=)
ClosedPublic

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

Details

Summary

When a derived type has a PRIVATE type-bound generic binding for
a defined ASSIGNMENT(=), don't use it in scopes outside of the
module that defines the type. We already get this case right
for other type-bound generics, including defined operators,
and for non-type-bound generic interfaces, but the check was
not applied for this case.

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2023, 12:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2023, 12:29 PM
klausler requested review of this revision.Feb 11 2023, 12:29 PM
This revision is now accepted and ready to land.Feb 11 2023, 9:29 PM
klausler updated this revision to Diff 496770.Feb 12 2023, 9:58 AM

Fix bug found during integration testing -- it is the accessibility of the generic that matters, of course, not the specific binding.

This revision was landed with ongoing or failed builds.Feb 13 2023, 3:58 PM
This revision was automatically updated to reflect the committed changes.