[flang-commits] [PATCH] D104929: [flang] Fix generic/specific procedure confusion

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jun 25 10:37:00 PDT 2021


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

A recent change that extended semantic analysis for actual arguments
that associate with procedure dummy arguments exposed some bugs in
regression test suites due to points of confusion in symbol table
handling in situations where a generic interface contains a specific
procedure of the same name.  When passing that name as an actual
argument, for example, it's necessary to take this possibility into
account because the symbol for the generic interface shadows the
symbol of the same name for the specific procedure, which is
what needs to be checked.  So add a small utility that bypasses
the symbol for a generic interface in this case, and use it
where needed.


https://reviews.llvm.org/D104929

Files:
  flang/include/flang/Parser/parse-tree.h
  flang/include/flang/Semantics/tools.h
  flang/lib/Evaluate/fold-reduction.h
  flang/lib/Semantics/expression.cpp
  flang/lib/Semantics/resolve-names.cpp
  flang/lib/Semantics/tools.cpp
  flang/runtime/type-info.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104929.354549.patch
Type: text/x-patch
Size: 7159 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210625/b4eeb385/attachment.bin>


More information about the flang-commits mailing list