This is an archive of the discontinued LLVM Phabricator instance.

[flang] Correct handling of non-default lower bounds in ASSOCIATE with named constants
ClosedPublic

Authored by klausler on Jul 31 2023, 4:12 PM.

Details

Summary

Work through several issues with LBOUND() and UBOUND() of ASSOCIATE
construct entities that have been associated with named constants or
subobjects of named constants that are sporting non-default lower bounds.
Sometimes the non-default lower bounds matter, sometimes they don't.
Add a fairly exhaustive test to work through the possibilities.

Diff Detail

Event Timeline

klausler created this revision.Jul 31 2023, 4:12 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jul 31 2023, 4:12 PM
vzakhari accepted this revision.Jul 31 2023, 4:33 PM

LGTM. Thank you!

This revision is now accepted and ready to land.Jul 31 2023, 4:33 PM