This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix CONTIGUOUS attribute for construct entities
ClosedPublic

Authored by klausler on Mar 1 2023, 1:06 PM.

Details

Summary

Currently, the selector of a construct entity (e.g., ASSOCIATE(x=>a(1:20)))
is inheriting the CONTIGUOUS attribute from its associated variable
even if it has subscripts that make it noncontiguous (a(1:20:2)).
Add construct entities to the dynamic contiguity predicate instead.

Diff Detail

Event Timeline

klausler created this revision.Mar 1 2023, 1:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 1:06 PM
klausler requested review of this revision.Mar 1 2023, 1:06 PM
This revision is now accepted and ready to land.Mar 2 2023, 7:30 AM
This revision was automatically updated to reflect the committed changes.