The following code shows that the recently introduced z%re and z%im for working directly with the REAL and AIMAG parts of complex Z, does not work as expected when Z is an array.
program t
implicit none
complex z(2)
real :: d(2) = [1.0,2.0]
z = 0.0
z(1)%re = d(1)
z(1)%im = d(2)
print*, z ! Should return (1.0 + j*2.0) and (0.0 + j*0.0)
end program t
FTN95 reports: error 378 - The '%' operator can only be applied to objects which are a derived type, which is not correct in this context.