[all-commits] [llvm/llvm-project] 653865: [Flang][OpenMP] Fix implicit symbol resolution for...

Aditya Trivedi via All-commits all-commits at lists.llvm.org
Thu Jun 11 06:17:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 653865dd8bb337b24a79a288afa30ee5206f8342
      https://github.com/llvm/llvm-project/commit/653865dd8bb337b24a79a288afa30ee5206f8342
  Author: Aditya Trivedi <120598696+adit4443ya at users.noreply.github.com>
  Date:   2026-06-11 (Thu, 11 Jun 2026)

  Changed paths:
    M flang/lib/Semantics/resolve-directives.cpp
    A flang/test/Semantics/OpenMP/use-rename-array-dsa.f90

  Log Message:
  -----------
  [Flang][OpenMP] Fix implicit symbol resolution for USE-renamed arrays (#189215)

[Flang][OpenMP] Fix USE-renamed array DSA in OpenMP regions

  Problem: for a USE-renamed symbol (e.g. USE mod, ONLY: s_ary => ary),
  the HostAssoc in the OMP scope was created under the original name
  "ary" instead of the local alias "s_ary".

  Fix: add a DeclareNewAccessEntity overload that takes an explicit
  SourceName, and call it with symbol->name() (the alias) rather than
  the ultimate symbol's name, so the HostAssoc is created under the
  name the user wrote.

  Fixes #185344

  Assisted-by: Claude Sonnet 4.6



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list