[Bug fortran/72698] ICE in lhd_incomplete_type_error, at langhooks.c:205

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Jul 26 19:06:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72698

--- Comment #1 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---

This variant seems to work :


$ cat z3.f90
program p
   character(:), allocatable :: z
   allocate (z, source=repeat('', 4))
   print *, len(z), '  >>' // z // '<<'
end


$ gfortran-7-20160724 z3.f90
$ a.out
           0   >><<


More information about the Gcc-bugs mailing list