This is an archive of the discontinued LLVM Phabricator instance.

[flang] Emit errors on vector subscripts with duplicated elements when object must be definable
ClosedPublic

Authored by klausler on Jul 17 2023, 10:18 AM.

Details

Summary

When the left-hand side of an assignment, or any other context demanding
definability, comprises a designator with a vector subscript that is
known at compilation time to have one or more duplicated elements,
emit an error message.

Diff Detail

Event Timeline

klausler created this revision.Jul 17 2023, 10:18 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jul 17 2023, 10:18 AM
PeteSteinfeld accepted this revision.Jul 17 2023, 11:39 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jul 17 2023, 11:39 AM
This revision was landed with ongoing or failed builds.Jul 17 2023, 12:24 PM
This revision was automatically updated to reflect the committed changes.