This is an archive of the discontinued LLVM Phabricator instance.

[flang] Warn about dangerous TRANSFER()
ClosedPublic

Authored by klausler on Feb 11 2023, 11:44 AM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Feb 11 2023, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 11 2023, 11:44 AM
klausler requested review of this revision.Feb 11 2023, 11:44 AM
vdonaldson accepted this revision.Feb 12 2023, 9:02 PM
This revision is now accepted and ready to land.Feb 12 2023, 9:02 PM
This revision was automatically updated to reflect the committed changes.