Before when transferring integer arrays to character strings and vice versa you
got a message stating this wasn't implemented yet. No the compiler mangles it
but produces wrong results.

e.g.:
CHARACTER(8) :: s1, s2
INTEGER(2)   :: ia

s1 = 'ABCDEFGH'
ia = TRANSFER(s1, (/ 0 /))
! On my system ia now is (/1145258561, 0/)
s2 = TRANSFER(ia, s2)
! Now s2 is 'ABCD'

See attached code


-- 
           Summary: Transfer of character to integer array and vice versa
                    still doesn't work
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bo dot berggren at glocalnet dot net
 GCC build triplet: linux,x86
  GCC host triplet: linux,x86
GCC target triplet: linux,x86


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27155

Reply via email to