https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51652
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #9 from kargl at gcc dot gnu.org --- (In reply to Dominique d'Humieres from comment #8) > AFAICT this PR is mostly fixed since gcc-5. However I see a remaining glitch > with the following variant of the original test > > module settings > > type keyword > ! character(60), allocatable :: c(:) ! works but should it? > ! character(80), allocatable :: c(:) ! works > character(:), allocatable :: c(:) > end type keyword > > type(keyword) :: kw(10) > > contains > > subroutine save_kw > > !allocate(kw(1)%c(10)) > allocate(character(80) :: kw(1)%c(10)) > > kw(1)%c(1) = 'abcd' > > print *, "'", kw(1)%c(1), "'" > if (trim(kw(1)%c(1)).eq.'abcd') then ! problem here > print *, 'yes' > else > print *, 'no' > endif > > end subroutine save_kw > > end module settings > > !************************************************************************* > > program ice > use settings > > call save_kw > > end program ice > > which prints > > 'abcd > ' > yes > > at run time, i.e., the second quote is missing. I think that the is now fixed and can be closed.