[all-commits] [llvm/llvm-project] ce8eff: [flang] Fix USE with homonymous renaming

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 22 07:35:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce8effc88aafa406d5fa5894abfa6fe9860b9c79
      https://github.com/llvm/llvm-project/commit/ce8effc88aafa406d5fa5894abfa6fe9860b9c79
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

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

  Log Message:
  -----------
  [flang] Fix USE with homonymous renaming

Fortran requires that a USE with renaming prevent the USE'd symbol
from also being associated into a scope without renaming.  The
implementation in name resolution gets confused in the case of
a USE with renaming using the same name ("x => x").  Clean things
up.  Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63397.

Differential Revision: https://reviews.llvm.org/D153452




More information about the All-commits mailing list