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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Chung-Lin Tang <clt...@gcc.gnu.org>:

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

commit r12-6584-gcd7484d05cd4b7a9d741fe8bf6c4525406ed7620
Author: Chung-Lin Tang <clt...@codesourcery.com>
Date:   Fri Jan 14 21:58:34 2022 +0800

    openmp: Fix ICE in [PR103705]

    Fix ICE for cases like:
      #pragma omp target update from(s[0].a[0:1])

    where multiple ARRAY_REF nodes exist and require more than one peeling
    during [c_]finish_omp_clauses.

            PR c++/103705

    gcc/c/ChangeLog:

            * c-typeck.c (c_finish_omp_clauses): Also continue peeling off of
            outer node for ARRAY_REFs.

    gcc/cp/ChangeLog:

            * semantics.c (finish_omp_clauses): Also continue peeling off of
            outer node for ARRAY_REFs.

    gcc/testsuite/ChangeLog:

            * c-c++-common/gomp/pr103705.c: New test.

Reply via email to