re PR c++/81011 (ICE with #pragma omp task and inaccessible copy-constructor)
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Jun 2017 18:55:04 +0000 (20:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Jun 2017 18:55:04 +0000 (20:55 +0200)
commit34361776fb238310222e0b24d4f0b51a3717a785
tree837548135068a58003acb2d0c4cd27c1be33b945
parent0d05f68547fb7478f3a210a6240d3a05465daad9
re PR c++/81011 (ICE with #pragma omp task and inaccessible copy-constructor)

PR c++/81011
* cp-gimplify.c (cxx_omp_finish_clause): When changing clause
to OMP_CLAUSE_SHARED, also clear OMP_CLAUSE_SHARED_FIRSTPRIVATE
and OMP_CLAUSE_SHARED_READONLY flags.

* g++.dg/gomp/pr81011.C: New test.

From-SVN: r249031
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr81011.C [new file with mode: 0644]