[Bug fortran/32795] allocatable components are nullified prematurely

dfranke at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 7 17:25:00 GMT 2008



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



More information about the Gcc-bugs mailing list