------- Additional Comments From erik dot edelmann at iki dot fi 2005-09-16 21:59 ------- (In reply to comment #1) > Hmm, I get: > In file t.f90:2 > > type t > 1 > Error: Pointer assignment target is neither TARGET nor POINTER at (1) >
Oh! I'm terribly sorry; I used a locally modifieded version of gfortran, with an attempt to fix PR 15975 in it. Here's a new testcase: $ cat erik.f90 program test type t real :: a = 3.1 end type t type(t), allocatable :: q(:) allocate(q(1)) print *, q(1)%a end program test $ gfortran erik.f90 $ a.out 0.000000 (expected out would be 3.100000 ) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23924