https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65073

            Bug ID: 65073
           Summary: dynamic character assignment gives wrong result
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: walt.brainerd at gmail dot com

$ cat f.f90
character(len=:), allocatable :: c
c = "abcde"
print *,len(c), c
c = c(2:)
print *,len(c), c
end

Walt@HP_Envy ~/Books/SV/GF08P/P05
$ gfortran --version f.f90
GNU Fortran (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.

Walt@HP_Envy ~/Books/SV/GF08P/P05
$ ./a
           5 abcde
           4 bcd

Reply via email to