This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow assignment to host association in BLOCK in PURE subprogram
ClosedPublic

Authored by klausler on Aug 3 2022, 12:51 PM.

Details

Summary

We need to distinguish BLOCK host association from subprogram host
association when checking assignments in PURE subprograms.
The specific case that is not allowed is an assignment to a variable
from the scope around the PURE subprogram.

Diff Detail

Event Timeline

klausler created this revision.Aug 3 2022, 12:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2022, 12:51 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 3 2022, 12:51 PM
jeanPerier accepted this revision.Aug 4 2022, 1:14 AM
This revision is now accepted and ready to land.Aug 4 2022, 1:14 AM