[PATCH] D94815: [flang] Create names to allow access to inaccessible specifics

Peter Klausler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 11:54:31 PST 2021


klausler created this revision.
klausler added a reviewer: tskeith.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When a reference to a generic interface occurs in a specification
expression that must be emitted to a module file, we have a problem
when the generic resolves to a function whose name is inaccessible
due to being PRIVATE or due to a conflict with another use of the
same name in the scope.  In these cases, construct a new name for
the specific procedure and emit a renaming USE to the module file.
Also, relax enforcement of PRIVATE when analyzing module files.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94815

Files:
  flang/include/flang/Semantics/expression.h
  flang/include/flang/Semantics/semantics.h
  flang/include/flang/Semantics/tools.h
  flang/lib/Evaluate/check-expression.cpp
  flang/lib/Semantics/expression.cpp
  flang/lib/Semantics/resolve-names.cpp
  flang/lib/Semantics/semantics.cpp
  flang/lib/Semantics/tools.cpp
  flang/test/Semantics/modfile39.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94815.317041.patch
Type: text/x-patch
Size: 11107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210115/fbc5fbc3/attachment.bin>


More information about the llvm-commits mailing list