https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101219
Bug ID: 101219
Summary: ice in perform_or_defer_access_check
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 51061
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51061&action=edit
gzipped C++ source code
For the attached C++ code, recent gcc trunk with flag -Wall does this:
/home/dcb/gcc/results.20210626/bin/g++
mednafen/pce_fast/psg.cpp: In member function ‘void
PCEFast_PSG::RunChannel(int, int32)’:
mednafen/pce_fast/psg.cpp:367:50: internal compiler error: Segmentation fault
0xfd9219 crash_signal(int)
../../trunk.git/gcc/toplev.c:327
0x912bc8 perform_or_defer_access_check(tree_node*, tree_node*, tree_node*, int,
access_failure_info*)
../../trunk.git/gcc/cp/semantics.c:490
Code compiled fine with git hash 7dcf139a2b8e1c53, dated two days ago,
and goes wrong with 607c558804f70af2, dated yesterday.