nncarlson / gfortran.dg

The GFortran testsuite rigged for testing other Fortran compilers
7 stars 2 forks source link

Different vector lengths in transfer_array_intrinsic_2.f90 #14

Closed nncarlson closed 6 years ago

nncarlson commented 6 years ago

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)
janusw commented 6 years ago

Fixed: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=257364