https://gcc.gnu.org/g:f73429deb0e316b0369660b816d1dbbb0e5e7121
commit r17-6418-gf73429deb0e316b0369660b816d1dbbb0e5e7121 Author: Waffl3x <[email protected]> Date: Wed Nov 18 09:40:20 2026 -0600 OpenMP/C++: Disable positive tests for cgroup, pteam, thread handles Regrettably, I forgot to disable tests for omp_cgroup_mem_alloc, omp_pteam_mem_alloc, and omp_thread_mem_alloc in r17-6101-g440449a6671901, which makes those cases ill-formed. This patch simply disables those cases, as once again, they are ill-formed. PR testsuite/128811 gcc/testsuite/ChangeLog: * g++.dg/gomp/allocate-handles-2.C: Don't test ill-formed cases. Signed-off-by: Waffl3x <[email protected]> Diff: --- gcc/testsuite/g++.dg/gomp/allocate-handles-2.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C b/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C index 89949ee0fefb..338cc5b325d9 100644 --- a/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C +++ b/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C @@ -17,6 +17,11 @@ void test_predefined_alloc() #pragma omp allocate(a) allocator(Alloc) } +/* These cases are disallowed for static lifetime variables. */ +template<> void test_predefined_alloc<omp_cgroup_mem_alloc>() {} +template<> void test_predefined_alloc<omp_pteam_mem_alloc>() {} +template<> void test_predefined_alloc<omp_thread_mem_alloc>() {} + /* Because this is written to work as far back as c++11 it is a little bit crusty. It is metaprogrammed to automatically test the full ranges specified above. */
