This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fixed shape computation for elementals with optional dummys.
ClosedPublic

Authored by vzakhari on Jul 26 2023, 5:30 PM.

Details

Summary

It looks like a regression after D151737: shape of the elemental
call became rank-0.

Diff Detail

Event Timeline

vzakhari created this revision.Jul 26 2023, 5:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2023, 5:30 PM
vzakhari requested review of this revision.Jul 26 2023, 5:30 PM
klausler accepted this revision.Jul 27 2023, 8:25 AM

Look great! Thanks for figuring this out and fixing it.

flang/lib/Evaluate/shape.cpp
814

Minor: if you declare anyArrayArgRank as std::size_t, you won't have to cast it later.

This revision is now accepted and ready to land.Jul 27 2023, 8:25 AM
vzakhari updated this revision to Diff 544829.Jul 27 2023, 10:03 AM

Thanks for the review! I fixed the data type.