[all-commits] [llvm/llvm-project] 48a8a3: [flang] Accept defined assignment with CLASS(*) RHS

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue May 24 13:46:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48a8a3eb2f5646c9ac847a07f42316a81e025c23
      https://github.com/llvm/llvm-project/commit/48a8a3eb2f5646c9ac847a07f42316a81e025c23
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-05-24 (Tue, 24 May 2022)

  Changed paths:
    M flang/lib/Semantics/tools.cpp
    M flang/test/Semantics/defined-ops.f90

  Log Message:
  -----------
  [flang] Accept defined assignment with CLASS(*) RHS

A utility predicate in semantics was incorrectly determining that
an INTERFACE ASSIGNMENT(=) (or other form of generic) could not have
a specific procedure with an unlimited polymorphic second argument.
This led to a crash later in expression analysis.  Fix, and
extend tests.

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




More information about the All-commits mailing list