This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make generic resolution conform to 15.5.5.2 w/r/t host association
ClosedPublic

Authored by klausler on May 27 2022, 8:22 PM.

Details

Summary

When two or more generic interfaces are available by declaration or
by USE association at different scoping levels, we need to search
the outer generic interfaces as well as the inner ones, but only after
the inner ones have failed to produce a specific procedure that matches
a given set of actual arguments. This means that it is possible for
a specific procedure of a generic interface of an inner scope to override
a conflicting specific procedure of a generic interface of an outer
scope.

Diff Detail

Event Timeline

klausler created this revision.May 27 2022, 8:22 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 27 2022, 8:22 PM
vdonaldson accepted this revision.May 27 2022, 8:51 PM
This revision is now accepted and ready to land.May 27 2022, 8:51 PM
klausler updated this revision to Diff 432691.May 27 2022, 8:51 PM

Add missing changes (a cherry-pick went awry).