This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
transfer of allocation status of zero sized tr18581 components on assignment
- From: Alexei Matveev <alexei dot matveev at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Mon, 12 Dec 2011 11:42:55 +0100
- Subject: transfer of allocation status of zero sized tr18581 components on assignment
Hi, All,
I assume it makes no sense to report a bug against 4.3.2 (Debian Lenny)
anymore? The program prints "F" for false, though the newer version of Gfortran
and Intel compiler correctly print "T".
What would be a "future proof" workaround for this bug? I have to stick to
Debian Lenny for some time.
Alexei
program prog
implicit none
type :: tr15581
real, allocatable :: m(:)
end type tr15581
type(tr15581) :: a, b
allocate(a%m(0))
b = a
print *, allocated(b%m)
end program prog