https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65677
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org --- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Hi John, I appreciate that it is probably three and a half years too late but here is a workaround: replace text = string text = ADJUSTL(text(2:)) !*** with allocate (text, source = ADJUSTL(string(2:))) I am working on deferred string problems and so hope to have this one fixed in the next few days. Thank you for submitting this problem. I have poked at it several times since submission but didn't find a solution. This time I am rather more determined. Paul