[all-commits] [llvm/llvm-project] 860ed6: [flang] Warn about dangerous TRANSFER()

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


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

  Changed paths:
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/test/Semantics/transfer01.f90

  Log Message:
  -----------
  [flang] Warn about dangerous TRANSFER()

When the source or mold of a reference to the intrinsic function TRANSFER()
has a derived type with a direct component that contains a descriptor,
such as an allocatable or a pointer, emit a warning.  User programs
should never access descriptors directly.

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




More information about the All-commits mailing list