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