[Bug fortran/66577] ICE in generate_finalization_wrapper, at fortran/class.c:1567

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sun Nov 8 05:31:00 GMT 2015


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 ***


More information about the Gcc-bugs mailing list