This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]