Another one for you Paul, - at least its not related to the native %pl !
I had thought 64 bit had broken my conductor impedance calculation program, but after some work I generated some simple code which behaves differently between 32 and 64 bit.
The following code works fine in 32 bit and returns the expected function value (4 + j4).
program test
implicit none
complex(kind=2) z
complex(kind=2) i0 ; external i0
z = cmplx(4.d0,4.d0)
write(6,*) z, i0(z)
end program test
complex(kind=2) function i0(z)
implicit none
complex(kind=2), intent(in) :: z
i0 = z
! return !## Uncomment this return statement and 64 bit works same as 32
end function i0
64 bit returns the incorrect function value (4 + j0), i.e. the imaginary part of the complex number is incorrect. If the comment before the return statement in the function i0 is removed, 64 bit behaves as expected.
Regards
Ken

[/img]