[all-commits] [llvm/llvm-project] 39b043: [flang] Extend assumed-size array checking in intr...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon May 12 12:29:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39b04335ef3021399f8c0dc43837a45537b62e54
      https://github.com/llvm/llvm-project/commit/39b04335ef3021399f8c0dc43837a45537b62e54
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/test/Semantics/misc-intrinsics.f90

  Log Message:
  -----------
  [flang] Extend assumed-size array checking in intrinsic functions (#139339)

The array argument of a reference to the intrinsic functions SHAPE can't
be assumed-size; and for SIZE and UBOUND, it can be assumed-size only if
DIM= is present. The checks for thes restrictions don't allow for host
association, or for associate entities (ASSOCIATE, SELECT TYPE) that are
variables.

Fixes https://github.com/llvm/llvm-project/issues/138926.



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