[Bug c++/66571] Template substitution causes some OpenMP rejects-valid

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 17 18:01:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66571

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun 17 18:01:05 2015
New Revision: 224569

URL: https://gcc.gnu.org/viewcvs?rev=224569&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:
    trunk/gcc/testsuite/g++.dg/gomp/pr66571-1.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list