https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66577
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- Since the ICE is at the same location as for pr61767 and the following test module json type :: array_element contains final :: array_element_delete end type type, public :: json_array_iterator integer, allocatable :: Dummy type(array_element), pointer :: element end type contains subroutine array_element_delete (this) type(array_element) :: this end subroutine subroutine array_iter_next (this) class(json_array_iterator) :: this end subroutine end module compiles fine (addition of "integer, allocatable :: Dummy" to the test in comment 2), I think this is a duplicate of pr61767. *** This bug has been marked as a duplicate of bug 61767 ***