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

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

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

commit r16-3953-gb49f1dad54d3638384780c11ed17ab43f6d5d86f
Author: Jakub Jelinek <ja...@redhat.com>
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  <ja...@redhat.com>

            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.

Reply via email to