Different vector lengths in transfer_array_intrinsic_2.f90
nncarlson opened this issue · comments
Neil Carlson commented
The assignment statement in
45: integer(4) :: y(4), z(2)
46: character(4) :: ch(4)
[...]
91: z = transfer (ch, y)
Attempts to assign a 4-vector to a 2-vector. The NAG compiler detects this error:
$ nagfor -kind=byte transfer_array_intrinsic_2.f90
NAG Fortran Compiler Release 6.1(Tozai) Build 6144
Error: transfer_array_intrinsic_2.f90, line 91: Different vector lengths (2 and 4)
Janus Weil commented