[all-commits] [llvm/llvm-project] aee705: [flang] Silence bogus error on use after IMPORT

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Feb 2 11:16:15 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aee705661fe8c2ecbf0e1766ee93dbad286a6b8c
      https://github.com/llvm/llvm-project/commit/aee705661fe8c2ecbf0e1766ee93dbad286a6b8c
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

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

  Log Message:
  -----------
  [flang] Silence bogus error on use after IMPORT

When a scope uses an explicit IMPORT statement to import a
symbol from the scope's host, it should not emit a bogus error
message later if that symbol is used in a specification construct.
The code that checks for imports being hidden by local declarations
was not allowing for the presence of host association (or USE)
indirection symbols in the local scope.  Fix by using GetUltimate()
before checking for the hidden symbol.

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




More information about the All-commits mailing list