[Bug libfortran/20406] SIZE() matters?
tkoenig at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 15 15:59:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list