[Patch] OpenMP/C++: Fix 'construct={simd}' trait-selector handling with 'declare variant' [PR127734]

Tobias Burnus tburnus@baylibre.com
Sun Oct 11 07:50:04 GMT 2026


This patch fixes the handling
   #pragma omp declare variant(…) match( … construct={…,simd(…) … } )
which was effectively ignored in C++ due to a
   'return true;'
after updating the 'simd' clauses.

@Jakub: I guess, you also do not remember what's mean by both the FIXME
and why there is a 'return true'? Or do you?

In any case, the patch fixes the testcase at hand and I intent to commit
it tomorrow, unless there are comments or concerns before.

Tobias

PS: The issue was found when adding the testcase for simdlen's 'scaled'
modifier as part of PR middle-end/127723.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-simd-c++.diff
Type: text/x-patch
Size: 4697 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20261011/7639578a/attachment.bin>


More information about the Gcc-patches mailing list