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++/101219] [12 Regression] ice in perform_or_defer_access_check since r12-1804-g65870e75616ee435
Date: Thu, 12 Aug 2021 18:44:54 +0000	[thread overview]
Message-ID: <bug-101219-4-vjsbOtD9S9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101219-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sergei Trofimovich <slyfox@gcc.gnu.org>:

https://gcc.gnu.org/g:27a1fb385b7fe706f05608e53f3e91d7d3442b8b

commit r12-2883-g27a1fb385b7fe706f05608e53f3e91d7d3442b8b
Author: Sergei Trofimovich <siarheit@google.com>
Date:   Fri Aug 6 16:14:16 2021 +0100

    c++: fix ptrmemfunc template instantiation [PR101219]

    r12-1804 ("cp: add support for per-location warning groups.") among other
    things removed warning suppression from a few places including ptrmemfuncs.

    This exposed a bug in warning detection code as a reference to missing
    BINFO (it's intentionally missing for ptrmemfunc types):

        crash_signal
            gcc/toplev.c:328
        perform_or_defer_access_check(tree_node*, tree_node*, tree_node*, int,
access_failure_info*)
            gcc/cp/semantics.c:490
        finish_non_static_data_member(tree_node*, tree_node*, tree_node*)
            gcc/cp/semantics.c:2208
        ...

    The change special cases ptrmemfuncs in templace substitution by using
    build_ptrmemfunc_access_expr() instead of finish_non_static_data_member().

    gcc/cp/ChangeLog:

            PR c++/101219
            * pt.c (tsubst_copy_and_build): Use build_ptrmemfunc_access_expr
            to construct ptrmemfunc expression instantiation.

    gcc/testsuite/ChangeLog:

            PR c++/101219
            * g++.dg/warn/pr101219.C: New test.

  parent reply	other threads:[~2021-08-12 18:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26  8:57 [Bug c++/101219] New: ice in perform_or_defer_access_check dcb314 at hotmail dot com
2021-06-26  9:01 ` [Bug c++/101219] " dcb314 at hotmail dot com
2021-06-28  7:25 ` [Bug c++/101219] [12 Regression] ice in perform_or_defer_access_check since r12-1804-g65870e75616ee435 marxin at gcc dot gnu.org
2021-06-28 20:00 ` msebor at gcc dot gnu.org
2021-07-19 21:26 ` slyfox at gcc dot gnu.org
2021-07-19 21:47 ` slyfox at gcc dot gnu.org
2021-07-20 23:16 ` slyfox at gcc dot gnu.org
2021-07-21  0:06 ` msebor at gcc dot gnu.org
2021-07-22 23:20 ` slyfox at gcc dot gnu.org
2021-08-12 18:44 ` cvs-commit at gcc dot gnu.org [this message]
2021-08-12 18:46 ` slyfox at gcc dot gnu.org
2021-11-03 18:53 ` ppalka at gcc dot gnu.org

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-101219-4-vjsbOtD9S9@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).