Commit cc63a7fa by Jakub Jelinek

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
parent 91ff1504
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment