https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724
Bug ID: 113724
Summary: [14 Regression][OpenMP] ICE (segfault) when mapping a
struct in omp_gather_mapping_groups_1
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, openmp
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
Target Milestone: ---
Created attachment 57295
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57295&action=edit
compile with: gcc -fopenmp target_struct_map.4
The attached testcase from the OpenMP examples document now ICEs in the
new omp_gather_mapping_groups_1 function.
* * *
target_struct_map.4.c: In function ‘main’:
target_struct_map.4.c:46:11: internal compiler error: Segmentation fault
46 | #pragma omp target data map(S1.p[:N],S1.p,S1.a,S1.b)
| ^~~
0x1045382 crash_signal
/home/tburnus/repos/gcc/gcc/toplev.cc:317
0x7fc380e4251f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0xcf8263 tree_check(tree_node*, char const*, int, char const*, tree_code)
/home/tburnus/repos/gcc/gcc/tree.h:3611
0xcf8263 omp_gather_mapping_groups_1
/home/tburnus/repos/gcc/gcc/gimplify.cc:9583
0xd0bc32 omp_gather_mapping_groups
/home/tburnus/repos/gcc/gcc/gimplify.cc:9610
0xd0bc32 gimplify_adjust_omp_clauses
/home/tburnus/repos/gcc/gcc/gimplify.cc:13733
0xd23d27 gimplify_omp_workshare