This is an archive of the discontinued LLVM Phabricator instance.

[flang] Catch errors with intrinsic array inquiry functions
ClosedPublic

Authored by klausler on Sep 16 2021, 12:58 PM.

Details

Summary

The intrinsic inquiry functions SIZE and UBOUND -- but not LBOUND --
require a DIM= argument if their first argument is an assumed-size
array. The intrinsic SHAPE must not be used with an assumed-size
array.

Diff Detail

Event Timeline

klausler created this revision.Sep 16 2021, 12:58 PM
klausler requested review of this revision.Sep 16 2021, 12:58 PM
PeteSteinfeld accepted this revision.Sep 16 2021, 2:45 PM

Looks great!

This revision is now accepted and ready to land.Sep 16 2021, 2:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 17 2021, 9:25 AM