[Bug fortran/29951] incorrect conversion from string to integer by TRANSFER()
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Nov 23 11:40:00 GMT 2006
------- Comment #3 from burnus at gcc dot gnu dot org 2006-11-23 11:39 -------
> In iresolve.c gfortran only checks whether the source is scalar or an array,
This is none sense it actually checks the mold-rank.
The function to modify is gfc_conv_intrinsic_transfer (trans-intrinsic.c);
we somewhere need to obtain for character strings their byte size.
gfc_conv_intrinsic_array_transfer seems to do the right thing.
For "character(len=2) :: byte_array(2)" it works,
for character(len=4) :: byte_array(1)" it does not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29951
More information about the Gcc-bugs
mailing list