This is an archive of the discontinued LLVM Phabricator instance.

[flang] Clarify cases where name resolution of generic shadowing can be overridden
ClosedPublic

Authored by klausler on Oct 27 2022, 2:59 PM.

Details

Summary

Fortran famously allows a generic interface definition to share a
scope with a procedure or derived type of the same name. When that
shadowed name is accessed via host or USE association, but is also
defined by an interface in the generic, then name resolution needs
to fix up the representation of the shadowing so that the new interface
definition is seen as the shadowed symbol -- the host or USE associated
name is not material to the situation. See the new test case for
particular examples.

Diff Detail

Event Timeline

klausler created this revision.Oct 27 2022, 2:59 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 27 2022, 2:59 PM
jeanPerier accepted this revision.Oct 27 2022, 11:59 PM

Looks good

This revision is now accepted and ready to land.Oct 27 2022, 11:59 PM