------- Comment #8 from burnus at gcc dot gnu dot org 2010-08-14 09:03 ------- Another test case, which requires PR45170 (allocable string lengths); it should print "|cdef|" (found at c.l.f in the thread "Problem with automatic reallocation of allocatable scalar on assignment")
program tst character(len=:), allocatable :: S S='abcdef' S=S(3:) write(*,'("|",A,"|")')S end program tst -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35810