https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89047
Bug ID: 89047 Summary: ICE in mark_scope_block_unused, at tree-ssa-live.c:391 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With option -fopenacc, down to at least version 5 : $ cat z1.f90 real function f() !$acc update device (f) end $ gfortran-9-20190120 -c z1.f90 -fopenacc during RTL pass: expand z1.f90:1:0: 1 | real function f() | internal compiler error: Segmentation fault 0xb3658f crash_signal ../../gcc/toplev.c:326 0x77c937 clear_tree_used ../../gcc/cfgexpand.c:1753 0x788d9a expand_used_vars ../../gcc/cfgexpand.c:2080 0x78aca2 execute ../../gcc/cfgexpand.c:6376 --- $ gfortran-9-20190120 -c z1.f90 -fopenacc -O2 -g $ $ gfortran-9-20190120 -c z1.f90 -fopenacc -O2 during GIMPLE pass: ssa z1.f90:3:0: 3 | end | internal compiler error: Segmentation fault 0xb3658f crash_signal ../../gcc/toplev.c:326 0xc2a3f1 mark_scope_block_unused ../../gcc/tree-ssa-live.c:391 0xc2a41a mark_scope_block_unused ../../gcc/tree-ssa-live.c:395 0xc2b751 remove_unused_locals() ../../gcc/tree-ssa-live.c:741 0xa70f44 execute_function_todo ../../gcc/passes.c:1955 0xa71e32 execute_todo ../../gcc/passes.c:2031