[flang] Add warning for FINAL pitfall
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
Loading
Please sign in to comment