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/41586] Allocatable _scalars_ are never auto-deallocated



------- Comment #3 from janus at gcc dot gnu dot org  2009-10-16 21:04 -------

> AND ALSO FOR:
> 
> type t0
> end type t0
> type(t0), allocatable :: m(:)
> allocate(t0 :: m(3))
> end

No, this one actually works (since 'm' is not a scalar):

  if (m.data != 0B)
    {
      __builtin_free ((void *) m.data);
    }
  m.data = 0B;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41586


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