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

            Bug ID: 67804
           Summary: ICE on data initialization of type(character) with
                    wrong data
           Product: gcc
           Version: 5.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

With wrong type of data in initializer t() :


$ cat z1.f90
program p
   type t
      character :: c
   end type
   type(t) :: x1, x2, x3, x4, x5, x6, x7, x8
   data x1 /t(1)/
   data x2 /t(1.)/
   data x3 /t(1d1)/
   data x4 /t((0.,1.))/
   data x5 /t(.true.)/
   data x6 /t(null())/
   data x7 /t(['1'])/
   data x8 /t([1])/
   !...
end


$ gfortran -g -O0 -Wall -fcheck=all -fno-frontend-optimize z1.f90
internal compiler error: in gfc_conv_string_init, at fortran/trans-const.c:161

Reply via email to