re PR c++/66571 (Template substitution causes some OpenMP rejects-valid)
authorJakub Jelinek <jakub@gcc.gnu.org>
Thu, 18 Jun 2015 09:54:17 +0000 (11:54 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 18 Jun 2015 09:54:17 +0000 (11:54 +0200)
PR c++/66571
* pt.c (tsubst_omp_clause_decl): New function.
(tsubst_omp_clauses): Use it or tsubst_copy instead of
tsubst_expr on OMP_CLAUSE_DECL.

* g++.dg/gomp/pr66571-1.C: New test.

From-SVN: r224599

gcc/cp/ChangeLog

index 0ebce1920a17c723c62077da0be213c78f41a0f9..153b3c4cd74ab2a1e784049b205e0ec9406b2af5 100644 (file)
@@ -7,7 +7,9 @@
 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/66571
-       * g++.dg/gomp/pr66571-1.C: New test.
+       * pt.c (tsubst_omp_clause_decl): New function.
+       (tsubst_omp_clauses): Use it or tsubst_copy instead of
+       tsubst_expr on OMP_CLAUSE_DECL.
 
 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>