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

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Jakub Jelinek
<[email protected]>:

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

commit r14-12091-gf4482164a0493fb62891600b57fb30479eb2359c
Author: Jakub Jelinek <[email protected]>
Date:   Thu Sep 18 16:41:32 2025 +0200

    openmp: Fix up ICE in lower_omp_regimplify_operands_p [PR121977]

    The following testcase ICEs in functions called from
    lower_omp_regimplify_operands_p, because maybe_lookup_decl returns
    NULL for this (on the outer taskloop context) when regimplifying the
    taskloop pre body.  If it isn't found in current context, we should
    look in outer ones.

    2025-09-18  Jakub Jelinek  <[email protected]>

            PR c++/121977
            * omp-low.cc (lower_omp_regimplify_operands_p): If
maybe_lookup_decl
            returns NULL, use maybe_lookup_decl_in_outer_ctx as fallback.

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

    (cherry picked from commit b49f1dad54d3638384780c11ed17ab43f6d5d86f)

Reply via email to