[Bug fortran/45516] [F08] allocatable compontents of recursive type
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 6 13:02:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45516
--- Comment #5 from janus at gcc dot gnu.org 2011-02-06 12:36:40 UTC ---
With the patch in comment #4, we currently get an ICE on the following test
case:
type entry1
real :: value
type(entry1), allocatable :: next
end type entry1
type(entry1), allocatable :: x
allocate(x)
end
The problem is that we run into an infinite loop when trying to auto-deallocate
x and the whole chain of its components, cf. gfc_deallocate_scalar_with_status,
gfc_deallocate_alloc_comp and structure_alloc_comps.
More information about the Gcc-bugs
mailing list