[flang-commits] [PATCH] D136891: [flang] Clarify cases where name resolution of generic shadowing can be overridden
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Oct 27 14:59:58 PDT 2022
klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.
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.
https://reviews.llvm.org/D136891
Files:
flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/symbol.cpp
flang/test/Semantics/resolve115.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136891.471299.patch
Type: text/x-patch
Size: 4677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221027/8f7b2121/attachment.bin>
More information about the flang-commits
mailing list