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

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 7 19:04:48 GMT 2020


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

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

https://gcc.gnu.org/g:d1371dbe12214895cda0b13bfc6ff0ed9cbce15d

commit r9-8478-gd1371dbe12214895cda0b13bfc6ff0ed9cbce15d
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