[Bug middle-end/113436] [OpenMP] 'allocate' clause has no effect for (first)private on 'target' directives
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 20 17:30:39 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113436
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kwok Yeung <kcy@gcc.gnu.org>:
https://gcc.gnu.org/g:92325afa259194e44fc21b36ba1d70d00c2e70fe
commit r16-7602-g92325afa259194e44fc21b36ba1d70d00c2e70fe
Author: Kwok Cheung Yeung <kcyeung@baylibre.com>
Date: Fri Feb 20 16:07:45 2026 +0000
openmp: Fix regression in libgomp.c++/target-6.C testcase [PR113436]
The fix for PR113436 introduced a regression causing the
libgomp.c++/target-6.C testcase to fail on some configurations.
This was caused by a change in how is_variable_sized is applied for
variables
that are references in private clauses, causing the path that was intended
for
variables that are variable-sized in themselves to be taken, instead of
that for referencing a variable-sized object.
2026-02-20 Kwok Cheung Yeung <kcyeung@baylibre.com>
gcc/
PR middle-end/113436
* omp-low.cc (omp_lower_target): Do not check for variable-length
variables in private clauses by reference when allocating memory.
gcc/testsuite/
PR middle-end/113436
* g++.dg/gomp/pr113436-2.C: New.
More information about the Gcc-bugs
mailing list