This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/78865] New: ICE in create_tmp_var, at gimple-expr.c:473


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

            Bug ID: 78865
           Summary: ICE in create_tmp_var, at gimple-expr.c:473
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

Affects version 7 down to at least 4.8, at -Os, -O2 or higher :


$ cat z1.f90
program p
   call sub (3)
end
subroutine sub (x)
   integer :: x, i, n
   do i = 1, x
      if ( n /= 0 ) stop
      call sub2
   end do
   print *, x, n
end
subroutine sub2
   call sub (*99)
99 stop
end


$ gfortran-7-20161218 -O2 z1.f90
z1.f90:3:0:

 end

internal compiler error: in create_tmp_var, at gimple-expr.c:473
0x9acb93 create_tmp_var(tree_node*, char const*)
        ../../gcc/gimple-expr.c:473
0x9acbb8 create_tmp_reg(tree_node*, char const*)
        ../../gcc/gimple-expr.c:489
0x1369556 split_function
        ../../gcc/ipa-split.c:1664
0x1369556 execute_split_functions
        ../../gcc/ipa-split.c:1865

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]