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

--- Comment #1 from G. Steinmetz <gs...@t-online.de> ---

This variant compiles and works :


$ cat z2.f90
program p
   type t
      character(:), allocatable :: c
   end type
   type(t), allocatable :: x
   x = t('abc')
   associate (y => x%c(:))
      print *, y
   end associate
end


$ gfortran-9-20181125 z2.f90 -static-libgfortran
$ a.out
 abc
$

Reply via email to