------- Comment #8 from dfranke at gcc dot gnu dot org 2008-02-07 17:24 ------- > Could somebody check the memory leakage for me, please?
type :: a
integer, allocatable :: i(:)
end type a
type(a) :: x, y
x = a ((/ 1,2,3 /))
! y = a (x%i(1:3)) ! ok
! y = a (x%i(1:)) ! ok
! y = a (x%i(:3)) ! ok
! y = a (x%i(:)) ! ok
! y = a (x%i) ! ok
! y = x ! ok
end
Test in comment #2 works on i686-pc-linux-gnu as well.
Thanks for fixing this!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32795
