[flang-commits] [PATCH] D126149: [flang] Don't prematurely resolve subprogram names

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue May 24 13:35:19 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGcd2a8df89165: [flang] Don't prematurely resolve subprogram names (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126149/new/

https://reviews.llvm.org/D126149

Files:
  flang/lib/Semantics/resolve-names.cpp


Index: flang/lib/Semantics/resolve-names.cpp
===================================================================
--- flang/lib/Semantics/resolve-names.cpp
+++ flang/lib/Semantics/resolve-names.cpp
@@ -3706,7 +3706,8 @@
 
 // If name is a generic, return specific subprogram with the same name.
 Symbol *SubprogramVisitor::GetSpecificFromGeneric(const parser::Name &name) {
-  if (auto *symbol{FindSymbol(name)}) {
+  // Search for the name but don't resolve it
+  if (auto *symbol{currScope().FindSymbol(name.source)}) {
     if (auto *details{symbol->detailsIf<GenericDetails>()}) {
       // found generic, want subprogram
       auto *specific{details->specific()};


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126149.431777.patch
Type: text/x-patch
Size: 669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220524/67fa149b/attachment.bin>


More information about the flang-commits mailing list