This is an archive of the discontinued LLVM Phabricator instance.

[flang] Diagnose known out-of-range subscripts in more circumstances
ClosedPublic

Authored by klausler on Jan 27 2023, 9:47 AM.

Details

Summary

Semantics can catch out-of-range subscript values already when they
appear in DATA statement objects and constant folding of name constant
array indexing; this patch fills the gap by checking known constant
subscript values in other contexts.

Diff Detail

Event Timeline

klausler created this revision.Jan 27 2023, 9:47 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jan 27 2023, 9:47 AM
PeteSteinfeld accepted this revision.Jan 27 2023, 11:13 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jan 27 2023, 11:13 AM
This revision was landed with ongoing or failed builds.Jan 28 2023, 3:27 PM
This revision was automatically updated to reflect the committed changes.