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)
commitcc63a7fac467b03b48491d45724fa0e38fb1e58a
tree158395f580cf5b961c621c869752368d1abf6c43
parent91ff150410721f627691550dfe871907c6b0175e
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