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.
Details
Details
- Reviewers
PeteSteinfeld - Commits
- rGc1168676a0c2: [flang] Add warning for FINAL pitfall
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo