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: [email protected]
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