This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
To you and Brooks, yes, I knew that MOLD determined whether the return value was scalar or a rank 1 array. With respect to MOLD's other array properties (ie, assumed-size, assume-shape, etc), no other property is important. Indeed, the allocation status of an allocatable MOLD may be unimportant (I haven't investigated this).
ifort thinks this one is:
program z integer(2), allocatable :: m(:) integer i, s(10) s = (/ (i, i=1,10) /) print*, transfer(s((/2,8,3,6/)),m,8) ! Is this legal? end program z
[prt@localhost prs]# ./a.out 2 0 8 0 3 0 6 0
It's exactly what the standard says, isn't it? The bit pattern defined by the source, projected onto the sink with the type and kind parameters of mold.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |