OpenMP: Fix folding with simd's linear clause [PR106492]
authorTobias Burnus <tobias@codesourcery.com>
Tue, 9 Aug 2022 05:57:40 +0000 (07:57 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 10 Aug 2022 17:17:35 +0000 (19:17 +0200)
commit68b8c55c7e7de8438ea97f600cdccac826b8e67d
tree25d6321e645f1363b4b000d7d1bcfa0bdc83300f
parentab2ca2dbd528f0564b80fa0e6eda96e0237742bc
OpenMP: Fix folding with simd's linear clause [PR106492]

gcc/ChangeLog:

PR middle-end/106492
* omp-low.cc (lower_rec_input_clauses): Add missing folding
to data type of linear-clause list item.

gcc/testsuite/ChangeLog:

PR middle-end/106492
* g++.dg/gomp/pr106492.C: New test.

(cherry picked from commit 8a16b9f983824b6b9a25275cd23b6bba8c98b800)
gcc/omp-low.cc
gcc/testsuite/g++.dg/gomp/pr106492.C [new file with mode: 0644]