[Bug fortran/29951] incorrect conversion from string to integer by TRANSFER()

2006-11-24 Thread kloedej at knmi dot nl
--- Comment #5 from kloedej at knmi dot nl 2006-11-24 08:12 --- Yes, I can confirm the gfortran version used was 4.3.0. I didn't notice the version number changed when I downoaded the latest version. Sorry for that. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29951

[Bug fortran/29951] incorrect conversion from string to integer by TRANSFER()

2006-11-23 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-11-24 03:00 --- (In reply to comment #2) > Confirmed. > For "transfer(string, integer)", gfortran's transfer only uses the first > character (byte). > It should use all characters. > > -fdump-tree-original: > value = VIEW_CONVERT

[Bug fortran/29951] incorrect conversion from string to integer by TRANSFER()

2006-11-23 Thread burnus at gcc dot gnu dot org
--- 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 somewh

[Bug fortran/29951] incorrect conversion from string to integer by TRANSFER()

2006-11-23 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2006-11-23 11:17 --- Confirmed. For "transfer(string, integer)", gfortran's transfer only uses the first character (byte). It should use all characters. -fdump-tree-original: value = VIEW_CONVERT_EXPR(byte_string[1]{lb: 1 sz: 1}); In