This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/20406] SIZE() matters?
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2005 15:59:16 -0000
- Subject: [Bug libfortran/20406] SIZE() matters?
- References: <20050310145412.20406.dave.offiler@metoffice.gov.uk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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