https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129116
Bug ID: 129116
Summary: openmp gimplifier ICE: base pointer cycle detected
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: sandra at gcc dot gnu.org
Target Milestone: ---
Created attachment 66316
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66316&action=edit
test case
The attached test case (split from one Tobias contributed) ICEs with -fopenmp
when compiled as either C or C++. I think this is probably a different bug
than the one reported in PR108422, although they're both giving the same error.
when processing group:
map(struct:*x [len: 1]) map(firstprivate:x [pointer assign, bias: 0])
map(alloc:x->ptr [len: 8])
/home/sloosemore/target-map-iterators-7a.c: In function 'this_ices':
/home/sloosemore/target-map-iterators-7a.c:13:11: internal compiler error: base
pointer cycle detected
13 | #pragma omp target map(to: x[0].ptr[:2], x[2].ptr[:2])
| ^~~