This is an archive of the discontinued LLVM Phabricator instance.

[flang] LBOUND() edge case: empty dimension
ClosedPublic

Authored by klausler on Mar 11 2022, 1:25 PM.

Details

Summary

LBOUND must return 1 for an empty dimension, no matter what
explicit expression might appear in a declaration or arrive in
a descriptor.

Diff Detail

Event Timeline

klausler created this revision.Mar 11 2022, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2022, 1:25 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 11 2022, 1:25 PM
This revision is now accepted and ready to land.Mar 14 2022, 2:33 AM
This revision was automatically updated to reflect the committed changes.