https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107001
Bug ID: 107001
Summary: ICE in expand_gimple_stmt_1, at cfgexpand.cc:4017
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Started with r9, at -O0 :
$ cat z1.c
void bar (int *q);
void foo (int *p, int *q)
{
#pragma omp taskgroup task_reduction (*: p[0])
{
#pragma omp taskgroup task_reduction (*: q[0])
bar (q);
}
}
$ gcc-13-20220918 -c z1.c -O0 -fopenmp -fexceptions
during RTL pass: expand
z1.c: In function 'foo':
z1.c:2:6: internal compiler error: in expand_gimple_stmt_1, at
cfgexpand.cc:4017
2 | void foo (int *p, int *q)
| ^~~
0x9587db expand_gimple_stmt_1
../../gcc/cfgexpand.cc:4017
0x9587db expand_gimple_stmt
../../gcc/cfgexpand.cc:4044
0x95febf expand_gimple_basic_block
../../gcc/cfgexpand.cc:6096
0x962516 execute
../../gcc/cfgexpand.cc:6822