[all-commits] [llvm/llvm-project] f52133: [flang] Correct defined assignment case (#142020)

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Jun 4 09:22:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f521338024a40175bd317be8c50ed20fbcf2a820
      https://github.com/llvm/llvm-project/commit/f521338024a40175bd317be8c50ed20fbcf2a820
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-06-04 (Wed, 04 Jun 2025)

  Changed paths:
    M flang/lib/Semantics/expression.cpp
    A flang/test/Semantics/bug141807.f90

  Log Message:
  -----------
  [flang] Correct defined assignment case (#142020)

When a generic ASSIGNMENT(=) has elemental and non-elemental specific
procedures that match the actual arguments, the non-elemental procedure
must take precedence. We get this right for generics defined with
interface blocks, but the type-bound case fails if the non-elemental
specific takes a non-default PASS argument.

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



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