[flang-commits] [PATCH] D143823: [flang] Warn about dangerous TRANSFER()

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat Feb 11 11:44:35 PST 2023


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D143823

Files:
  flang/lib/Evaluate/intrinsics.cpp
  flang/lib/Semantics/check-call.cpp
  flang/test/Semantics/transfer01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143823.496704.patch
Type: text/x-patch
Size: 6442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230211/9cf13376/attachment-0001.bin>


More information about the flang-commits mailing list