This is an archive of the discontinued LLVM Phabricator instance.

[flang] Finalize &/or destroy ABSTRACT types
ClosedPublic

Authored by klausler on Jul 21 2023, 8:22 AM.

Details

Summary

The runtime type information tables always flag ABSTRACT types as
needing neither destruction in general nor finalization in particular.
This is incorrect. Although an ABSTRACT type may not itself have
a FINAL procedure -- its argument cannot be polymorphic, but
ABSTRACT types in declarations must always be so -- it can still
have finalizable components &/or components requiring deallocation.

Diff Detail

Event Timeline

klausler created this revision.Jul 21 2023, 8:22 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jul 21 2023, 8:22 AM
vzakhari accepted this revision.Jul 21 2023, 9:09 AM

Thank you for the fix!

This revision is now accepted and ready to land.Jul 21 2023, 9:09 AM
This revision was automatically updated to reflect the committed changes.