This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix check for assumed-size arguments to SHAPE() & al.
ClosedPublic

Authored by klausler on May 10 2022, 3:20 PM.

Details

Summary

The predicate that is used to detect an invalid assumed-size argument
to the intrinsic functions SHAPE, SIZE, & LBOUND gives false results
for arguments whose shapes are not calculatable at compilation time.
Replace with an explicit test for an assumed-size array dummy argument
symbol.

Diff Detail

Event Timeline

klausler created this revision.May 10 2022, 3:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2022, 3:20 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 10 2022, 3:20 PM
This revision is now accepted and ready to land.May 11 2022, 1:28 AM