This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix bogus errors from SIZE/SHAPE/UBOUND on assumed-shape
ClosedPublic

Authored by klausler on Jun 22 2022, 3:39 PM.

Details

Summary

While it is indeed an error to use SIZE, SHAPE, or UBOUND on an
assumed-shape dummy argument without also supplying a DIM= argument
to the intrinsic function, it is *not* an error to use these intrinsic
functions on sections or expressions of such arrays. Refine the test
used for the error message.

Diff Detail

Event Timeline

klausler created this revision.Jun 22 2022, 3:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2022, 3:39 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Jun 22 2022, 3:39 PM
This revision is now accepted and ready to land.Jun 22 2022, 9:58 PM