From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57B27385801D; Mon, 19 Jul 2021 21:26:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57B27385801D From: "slyfox at gcc dot 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: Mon, 19 Jul 2021 21:26:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 21:26:22 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101219 --- Comment #4 from Sergei Trofimovich --- Got the same mednafen crash today. Poked slightly at the context in gdb. >>From what I understand the crash happens when analysing statement `void (PCEFast_PSG::*ch_0)(int, int *);`. There is no access to the any object fi= eld implied by `TYPE_BINFO (access_type)`. Or is there? Should it refer to `cla= ss PCEFast_PSG`? (gdb) fr 1 #1 0x000000000079ff83 in finish_non_static_data_member (decl=3D0x7ffff7652= a18, object=3D0x7ffff7796860, qualifying_scope=3D0x0) at /home/slyfox/dev/git/gcc/gcc/cp/semantics.c:2208 2208 perform_or_defer_access_check (TYPE_BINFO (access_type), decl, (gdb) list 2203 QUALIFYING_SCOPE is also non-null. */ 2204 else 2205 { 2206 volatile tree access_type =3D TREE_TYPE (object); 2207 2208 perform_or_defer_access_check (TYPE_BINFO (access_type), decl, 2209 decl, tf_warning_or_error); 2210 2211 /* If the data member was named `C::M', convert `*this' to `C' 2212 first. */ (gdb) call print_tree(object) No symbol "print_tree" in current context. (gdb) call debug_tree(object) unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7ffff77a1bd0 fields unsigned nonaddressable DI psg.cpp.cpp:5:39 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context chain > ptrmemfunc fn type public unsigned type_6 DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7ffff77a1b28> chain > constant> (gdb) call debug_tree(access_type) constant 128> unit-size constant 16> align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x7ffff77a1bd0 fields public unsigned type_6 DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-ty= pe 0x7ffff77a1b28> unsigned nonaddressable DI psg.cpp.cpp:5:39 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context chain nonaddressable DI psg.cpp.cpp:5:39 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context >> ptrmemfunc fn type chain >=