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

            Bug ID: 71703
           Summary: ICE in wide_int_to_tree, at tree.c:1488
           Product: gcc
           Version: 6.1.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: ---

Some problematic code snippets :


$ cat z1.f90
program p
   type t1
   end type
   type t2
      integer :: n
      class(*), allocatable :: a
   end type
   type(t1) :: x = t1()
   type(t2) :: y = t2(1, null())
   print *, same_type_as(x, y%a)
end

$ gfortran-6 z1.f90
z1.f90:10:0:

    print *, same_type_as(x, y%a)

internal compiler error: in wide_int_to_tree, at tree.c:1488



$ cat z2.f90
program p
   type t1
   end type
   type t2
      integer :: n
      class(*), allocatable :: a
   end type
   type(t1) :: x = t1()
   type(t2) :: y = t2(1)
   print *, same_type_as(x, y%a)
end

$ gfortran-6 z2.f90
z2.f90:10:0:

    print *, same_type_as(x, y%a)

internal compiler error: in wide_int_to_tree, at tree.c:1488

Reply via email to