This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add warning for FINAL pitfall
ClosedPublic

Authored by klausler on Oct 30 2020, 1:32 PM.

Details

Summary

Fortran's FINAL feature is sensitive to object rank.
When an object's rank excludes it from finalization, but
the type has FINAL subroutines for other ranks, emit
a warning. This should be especially helpful in the
case of a scalar FINAL subroutine not being declared
(IMPURE) ELEMENTAL.

Diff Detail

Event Timeline

klausler created this revision.Oct 30 2020, 1:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2020, 1:32 PM
klausler requested review of this revision.Oct 30 2020, 1:32 PM
PeteSteinfeld accepted this revision.Oct 30 2020, 2:25 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Oct 30 2020, 2:25 PM
This revision was automatically updated to reflect the committed changes.