This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add one semantic check for elemental call arguments
ClosedPublic

Authored by peixin on May 16 2022, 6:21 AM.

Details

Summary

As Fortran 2018 15.8.1(3), In a reference to an elemental procedure, if
any argument is an array, each actual argument that corresponds to an
INTENT (OUT) or INTENT (INOUT) dummy argument shall be an array. Add
this semantic check.

Diff Detail

Event Timeline

peixin created this revision.May 16 2022, 6:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 16 2022, 6:21 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
peixin requested review of this revision.May 16 2022, 6:21 AM
klausler accepted this revision.May 16 2022, 8:47 AM
klausler added inline comments.
flang/lib/Semantics/check-call.cpp
897

The original name was fine.

This revision is now accepted and ready to land.May 16 2022, 8:47 AM
peixin updated this revision to Diff 429926.May 16 2022, 8:29 PM

Thanks @klausler for the review. Change the function name back to CheckElementalConformance as suggested.