[all-commits] [llvm/llvm-project] 54912d: [flang] Catch obscure error in defined assignment

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jan 27 13:42:01 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54912dd2fbbd2e212099da94bb3aaf1bbae642c3
      https://github.com/llvm/llvm-project/commit/54912dd2fbbd2e212099da94bb3aaf1bbae642c3
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-01-27 (Fri, 27 Jan 2023)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/resolve65.f90

  Log Message:
  -----------
  [flang] Catch obscure error in defined assignment

A subroutine that implements a defined assignment cannot have
a dummy argument for its second operand (the RHS of the assignment)
with the POINTER or ALLOCATABLE attributes, since the RHS of
an assignment is always an expression.  This problem is flagged
as a fatal error in other compilers, so let's make it fatal here
as well.

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




More information about the All-commits mailing list