Fortran FINAL procedure for ABSTRACT type
问题 Can I add a final procedure to an abstract type? Suppose the final procedure looks like this: subroutine finalize(this) type(bin_tree_t), intent(inout) :: this deallocate(this%head) end subroutine finalize My compiler (ifort 18.0.1) gives "error #8313: The TYPE(derived-type-spec) shall not specify an abstract type". I get this, but the dummy argument of a final subroutine cannot be polymorphic. If this is not possible, is it then likely to have been a conscious choice of the standards