https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90519
Andrew B <andrew at blamsoft dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew at blamsoft dot com --- Comment #3 from Andrew B <andrew at blamsoft dot com> --- This related code will crash gfortran 9.2.1. module m type t type(t), allocatable :: a contains final :: my_final end type contains subroutine my_final(self) type(t) :: self end subroutine end module Also crashes if my_final is specified as recursive.