Hi Jakub,

On 06/18/2015 11:43 AM, Jakub Jelinek wrote:
Hi!

I've committed (yesterday already) the following patch to trunk and 5 branch
to fix an issue where tsubst_expr on OMP_CLAUSE_DECL, when a decl had
non-reference dependent type, got a reference type after instantiation
and tsubst_expr added convert_from_reference around it.

Bootstrapped/regtested on x86_64-linux and i686-linux.

2015-06-17  Jakub Jelinek  <ja...@redhat.com>

        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.
Nit: I think you inadvertently committed the new gcc/testsuite/ChangeLog entry as gcc/cp/ChangeLog entry too.

Paolo.

Reply via email to