http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58880
--- Comment #8 from janus at gcc dot gnu.org --- (In reply to Tobias Burnus from comment #7) > Draft patch. Does fix the ICE apparently, but then gives: /tmp/cc6WAMPO.o: In function `__gn_MOD_ndm': c0.f90:(.text+0x676): undefined reference to `__final_gn_Nde.2455' > Janus: As you have a better idea when vtables are generated: Have you an > idea why the finalization wrapper__final_gn_Nde is not produced? Not sure, but I'll try to find out. Btw, the following variant gives a different ICE also with the patch: module gn implicit none type sl integer, allocatable, dimension(:) :: lv contains final :: sld end type contains subroutine sld(s) type(sl) :: s end subroutine end module use gn type :: nde type(sl) :: r end type contains subroutine ndm type(nde) :: s,i i=s end subroutine end