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]

Re: transfer_array_intrinsic testcase failures (was Re: transfer_array_intrinsic failures)


Dominique,

Paul,

I am not sure to follow you with 'size_bytes(DEST)'. What is it in the following code:

integer(4) :: y(4)
character(4) :: ch(4)=(/'abcd','efgh','ijkl','mnop'/)
y = transfer(ch,y)
print *, y
print *, transfer(y,ch,3)
end


in the first, it is of course shape(y)*kind(y), whilst in the second it is determined by transfer to be 3*sizeof(ch(1))

PS Apparently there is no conformance check in gfortran:


You are mostly correct - this is why I was saying earlier that I had a partial patch:

try

real(4) :: pi, a(2), b(3)
b = reshape ((/1.0/),(/1/))
print *, b
end

Paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]