From cc63a7fac467b03b48491d45724fa0e38fb1e58a Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 18 Jun 2015 11:54:17 +0200 Subject: [PATCH] re PR c++/66571 (Template substitution causes some OpenMP rejects-valid) 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0ebce1920a1..153b3c4cd74 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -7,7 +7,9 @@ 2015-06-17 Jakub Jelinek 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 -- 2.30.2