https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67177
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to Paul Thomas from comment #2) > (In reply to Dominique d'Humieres from comment #1) > > Confirmed for 5.2 and trunk (6.0). Note that it is in general better to post > > the non working test rather the working one. > > The hidden component ._text_length is not being set by MOVE_ALLOC. The move > of the allocation is occurring correctly, however. > > I am wading into move_alloc right now to fix the bug reported on clf by > Alberto Luaces: > https://groups.google.com/forum/#!topic/comp.lang.fortran/k3bkKUbOpFU > > I'll take a swing at this bug this afternoon. Right now I have to paint > shutters :-( > > Paul In fact, the move_alloc part is one of two bugs exposed by this testcase. The other bug is contained in: ! Needs blanking otherwise memory is leaked tmpstr%text(1:20) = ' ' tmpstr%text(1:3) = 'foo' and has been reported as PR67977. I'll fix this one as well, whilst I am about it. Cheers Paul