[Bug fortran/90519] ICE (segfault) on derived type which has a recursive allocatable component of the same type, and a static component of another type which has a "final" attribute

andrew at blamsoft dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 13 09:02:00 GMT 2020


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.


More information about the Gcc-bugs mailing list