https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66571
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Jun 17 18:14:49 2015 New Revision: 224572 URL: https://gcc.gnu.org/viewcvs?rev=224572&root=gcc&view=rev Log: 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. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/gomp/pr66571-1.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/pt.c branches/gcc-5-branch/gcc/testsuite/ChangeLog