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

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

The ICE disappears if some prints are added :

$ cat z2.f90
program p
   type t
      integer :: n
      character(8) :: c(1)
   end type
   type(t) :: x = t(1, ['a'])
   type(t) :: y = t(1, ['a', 'b'])
   print *, x
   print *, y
end

$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z2.f90
$ a.out
           1 a
           1 a

Reply via email to