[Bug c++/94477] ICE in tsubst_expr, at cp/pt.c:18181

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 3 22:37:11 GMT 2020


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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:0c809f727cd2a6c70c307d9dd53d26dc84bf292a

commit r10-7547-g0c809f727cd2a6c70c307d9dd53d26dc84bf292a
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Apr 4 00:35:41 2020 +0200

    openmp: Fix ICE on #pragma omp parallel master in template [PR94477]

    The following testcase ICEs, because for parallel combined with some
    other construct we initialize the omp_parallel_combined_clauses pointer
    and expect the construct combined with it to clear it after it no longer
    needs it, but OMP_MASTER didn't do that.

    2020-04-04  Jakub Jelinek  <jakub@redhat.com>

            PR c++/94477
            * pt.c (tsubst_expr) <case OMP_MASTER>: Clear
            omp_parallel_combined_clauses.

            * g++.dg/gomp/pr94477.C: New test.


More information about the Gcc-bugs mailing list