public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/106829] [12/13 Regression] OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 since r12-5835
Date: Thu, 03 Nov 2022 00:22:58 +0000	[thread overview]
Message-ID: <bug-106829-4-X6Xk2QVvSZ@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-106829-4@http.gcc.gnu.org/bugzilla/>

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

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

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

commit r12-8883-gf755e367117ca43c96235ef47d4915c3746a3483
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Sep 7 08:54:13 2022 +0200

    openmp: Fix handling of target constructs in static member functions
[PR106829]

    Just calling current_nonlambda_class_type in static member functions
returns
    non-NULL, but something that isn't *this and if unlucky can match part of
the
    IL and can be added to target clauses.
          if (DECL_NONSTATIC_MEMBER_P (decl)
              && current_class_ptr)
    is a guard used elsewhere (in check_accessibility_of_qualified_id).

    2022-09-07  Jakub Jelinek  <jakub@redhat.com>

            PR c++/106829
            * semantics.cc (finish_omp_target_clauses): If
current_function_decl
            isn't a nonstatic member function, don't set data.current_object to
            non-NULL.

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

    (cherry picked from commit e90af965e5c858ba02c0cdfbac35d0a19da1c2f6)

      parent reply	other threads:[~2022-11-03  0:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05  5:03 [Bug c++/106829] New: OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 xw111luoye at gmail dot com
2022-09-05 10:14 ` [Bug c++/106829] " jakub at gcc dot gnu.org
2022-09-05 10:51 ` [Bug c++/106829] [12/13 Regression] OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 since r12-5835 jakub at gcc dot gnu.org
2022-09-06 13:29 ` jakub at gcc dot gnu.org
2022-09-07  6:57 ` cvs-commit at gcc dot gnu.org
2022-09-07 19:18 ` xw111luoye at gmail dot com
2022-11-03  0:22 ` cvs-commit at gcc dot gnu.org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-106829-4-X6Xk2QVvSZ@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).