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. Differential revision: https://reviews.llvm.org/D90495
75 KiB
75 KiB