[all-commits] [llvm/llvm-project] b05486: [flang] Accept unambiguous USE name clashes

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 25 15:05:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b05486dbf98821100bf56b9037790280a7a31642
      https://github.com/llvm/llvm-project/commit/b05486dbf98821100bf56b9037790280a7a31642
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-08-25 (Thu, 25 Aug 2022)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/resolve114.f90

  Log Message:
  -----------
  [flang] Accept unambiguous USE name clashes

When, due to one or more USE associations, possibly with renaming,
a symbol conflicts with another of the same name in the same scope,
don't raise an error if both symbols resolve to the same intrinsic
procedure or to the same non-generic external procedure interface --
the usage is unambiguous and safe, and (14.2.2 p8) standard.

(Generic interfaces already work by way of combining their sets of
specific procedures.)

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




More information about the All-commits mailing list