[all-commits] [llvm/llvm-project] 30d932: [flang] Pointers returned from functions are not d...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Feb 13 16:15:51 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 30d932305567e7f3d9018db3fd25060ae5c16cd5
      https://github.com/llvm/llvm-project/commit/30d932305567e7f3d9018db3fd25060ae5c16cd5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M flang/lib/Semantics/definable.cpp
    A flang/test/Semantics/definable04.f90

  Log Message:
  -----------
  [flang] Pointers returned from functions are not definable as pointers

A reference to a pointer-valued function is a "variable" in the argot of
the Fortran standard, and can be the left-hand side of an assignment
statement or passed as a definable actual argument -- but it is not a
definable pointer, and cannot be associated with a pointer dummy argument
that is not INTENT(IN).

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




More information about the All-commits mailing list