https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120530
Bug ID: 120530 Summary: nvptx offloading: FAIL: libgomp.c/target-map-zero-sized-3.c execution test Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: openmp, testsuite-fail Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: burnus at gcc dot gnu.org Target Milestone: --- Target: nvptx The 'libgomp.c/target-map-zero-sized-3.c' added in commit r16-636-g814e29e390b1e9253f9a38e0d84f5ebe5de0c13e "OpenMP: Fix mapping of zero-sized arrays with non-literal size: map(var[:n]), n = 0" FAILs its execution test for nvptx offloading -- but PASSes for GCN offloading (and host-fallback execution). PASS: libgomp.c/target-map-zero-sized-3.c (test for excess errors) FAIL: libgomp.c/target-map-zero-sized-3.c execution test libgomp: cuCtxSynchronize error: an illegal memory access was encountered I've not yet checked, but as that commit has been cherry-picked into releases/gcc-15 branch in commit r15-9706-gab9ca3a8b1af4119b5849f3615a94e5f1fd4e5a7 "OpenMP: Fix mapping of zero-sized arrays with non-literal size: map(var[:n]), n = 0", it probably FAILs there as well.