[all-commits] [llvm/llvm-project] 4d32f9: [flang] Don't implicitly host-associate unknown EQ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 29 08:33:57 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d32f9ad0eb7e602ba5000baaacf926f3756769d
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-29 (Tue, 29 Aug 2023)

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

  Log Message:
  [flang] Don't implicitly host-associate unknown EQUIVALENCE designators

When resolving names in a specification part, unknown names that appear
in a specification expression before any local declaration are assumed
to be implicitly declared objects in the host scope.  Objects in
EQUIVALENCE sets are not part of specification expressions, so ensure
that they do not receive this treatment; besides being wrong and
unimplementable, it will lead to a later crash during offset assignment.

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

More information about the All-commits mailing list