[flang-commits] [PATCH] D102948: [flang] Fix symbol table bugs with ENTRY statements

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri May 21 14:52:33 PDT 2021


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

Dummy arguments of ENTRY statements in execution parts were
not being created as objects, nor were they being implicitly
typed.

When the symbol corresponding to an alternate ENTRY point
already exists (by that name) due to having been referenced
in an earlier call, name resolution used to delete the extant
symbol.  This isn't the right thing to do -- the extant
symbol will be pointed to by parser::Name nodes in the parse
tree while no longer being part of any Scope.


https://reviews.llvm.org/D102948

Files:
  flang/lib/Semantics/resolve-names.cpp
  flang/test/Semantics/resolve18.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102948.347131.patch
Type: text/x-patch
Size: 5723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210521/e9e0556a/attachment.bin>


More information about the flang-commits mailing list