https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90900
Bug ID: 90900 Summary: [8/9/10 Regression] ICE in copy_rtx, at rtl.c:376 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started with gcc-8 (before 20180525) : $ cat z1.c void f (int a) { void *x = &&lab; #pragma omp parallel if (a) { lab: __builtin_unreachable(); } x; } $ gcc-7 -c z1.c -fopenmp -O2 -g $ $ gcc-10-20190609 -c z1.c -fopenmp -O2 $ $ gcc-10-20190609 -c z1.c -fopenmp -O2 -g during RTL pass: expand z1.c: In function 'f': z1.c:1:6: internal compiler error: in copy_rtx, at rtl.c:376 1 | void f (int a) | ^ 0xa2661a copy_rtx(rtx_def*) ../../gcc/rtl.c:376 0x6cb65d expand_debug_expr ../../gcc/cfgexpand.c:4403 0x6cb848 expand_debug_expr ../../gcc/cfgexpand.c:4980 0x6d537a expand_debug_locations ../../gcc/cfgexpand.c:5455 0x6d537a execute ../../gcc/cfgexpand.c:6525