This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle empty array references in DATA statements
ClosedPublic

Authored by klausler on Jun 26 2023, 11:55 AM.

Details

Summary

When an array reference in a DATA statement is empty due to an
empty vector subscript or a section lower bound being higher than
its upper bound with a positive stride (or lower with negative),
ensure that isEmpty() is correct afterwards so that such an empty
array reference doesn't terminate processing of that DATA statement
block.

Fixes https://github.com/llvm/llvm-project/issues/63512.

Diff Detail

Event Timeline

klausler created this revision.Jun 26 2023, 11:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 11:55 AM
klausler requested review of this revision.Jun 26 2023, 11:55 AM
PeteSteinfeld accepted this revision.Jun 26 2023, 3:17 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 26 2023, 3:17 PM
This revision was automatically updated to reflect the committed changes.