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 libfortran/20406] SIZE() matters?


------- Additional Comments From tkoenig at gcc dot gnu dot org  2005-06-15 15:59 -------
Even ifort does not support this cleanly.

Look at this:

$ cat size2.f90
program main
  real, dimension(:), allocatable :: a
  print *,size(a)
  allocate (a(5))
  print *,size(a)
  deallocate (a)
  print *,size(a)
end program main
$ ifort size2.f90
$ ./a.out
           0
           5
           5

Note the size still sticks around after deallocation.

-- 


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


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