Hi,
the following snippet
program gfcbug67
implicit none
type mytype
integer, pointer :: i(:) => NULL ()
end type mytype
type(mytype) :: t
print *, size (transfer (1, t% i))
end program gfcbug67
fails to compile with:
gfcbug67.f90:9.17:
print *, size (transfer (1, t% i))
1
Error: 'array' argument of 'size' intrinsic at (1) must be an array
Cheers,
-ha
--
Summary: [4.3 regression] with SIZE or TRANSFER
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: anlauf at gmx dot de
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32689