[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
parent
0a512a55
Please register or sign in to comment