https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70914
--- Comment #2 from kargl at gcc dot gnu.org --- Hmm, this appears to be fixed on trunk or at least within my version of gfortran. gcc version 7.0.0 20160629. troutmask:sgk[235] cat a.f90 character(:), allocatable :: z z = 'z' z = z print *, z end troutmask:sgk[236] time gfc7 -o z a.f90 && ./z 0.04 real 0.02 user 0.02 sys z