This is an archive of the discontinued LLVM Phabricator instance.

[flang] Check for elemental finalizer when defined object has vector subscript
ClosedPublic

Authored by klausler on Dec 15 2022, 11:09 AM.

Details

Summary

When a defined object is an array with a vector subscript, and it has a
finalizable type, it may have a final subroutine with a matching or
assumed rank dummy argument that cannot be called. Unless there is
also a suitable elemental final subroutine, diagnose such a case
with an error message.

Diff Detail

Event Timeline

klausler created this revision.Dec 15 2022, 11:09 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 15 2022, 11:09 AM
jeanPerier accepted this revision.Dec 15 2022, 11:24 PM

clang-format issue in flang/lib/Semantics/definable.cpp, LGTM otherwise.

This revision is now accepted and ready to land.Dec 15 2022, 11:24 PM
This revision was landed with ongoing or failed builds.Dec 16 2022, 9:53 AM
This revision was automatically updated to reflect the committed changes.