https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113279
Bug ID: 113279
Summary: OpenMP 5 - Audit GOMP_MAP_FIRSTPRIVATE_REFERENCE
handling for references to pointers to pointers
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: jules at gcc dot gnu.org
Target Milestone: ---
The patch (approved and soon to be committed) to support "lvalue" parsing for
C++ has a corner-case issue whereby references to pointers to pointers do not
quite work interchangeably with pointers to pointers (i.e. when implicitly
mapped). See the "ref2ptrptr_offset_decl_member_slice" functions in the libgomp
test cases baseptrs-4.C and baseptrs-6.C.
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/641924.html
It is possible that a slight semantic tweak to GOMP_MAP_FIRSTPRIVATE_REFERENCE
handling in gimplify.cc or omp-low.cc might be able to repair these cases, if
indeed that is required by the spec.