This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch attempts to copy pointers in allocatables in PURE
ClosedPublic

Authored by klausler on Dec 1 2022, 5:52 PM.

Details

Summary

In a pure context, a pointer acquired from an INTENT(IN) dummy argument
may not be copied. Catch the case in which the pointer is a component
of an allocatable component at some depth of nesting.

(This patch adds a new component iterator kind that is a variant of
a potential subobject component iterator; it visits all potential
subobject components, plus pointers, into which it does not descend.)

Diff Detail

Event Timeline

klausler created this revision.Dec 1 2022, 5:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2022, 5:52 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 1 2022, 5:52 PM
jeanPerier accepted this revision.Dec 2 2022, 12:19 AM

Looks good

This revision is now accepted and ready to land.Dec 2 2022, 12:19 AM