[all-commits] [llvm/llvm-project] e162dc: [flang] Fix symbol table bugs with ENTRY statements

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri May 21 17:45:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e162dc6f281e817e6dd000be71bfaf6bad358d79
      https://github.com/llvm/llvm-project/commit/e162dc6f281e817e6dd000be71bfaf6bad358d79
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/resolve18.f90

  Log Message:
  -----------
  [flang] Fix symbol table bugs with ENTRY statements

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.

Differential Review: https://reviews.llvm.org/D102948




More information about the All-commits mailing list