https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122758
Bug ID: 122758
Summary: [16 Regression] ice during finish_goto_stmt
Product: gcc
Version: 16.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 62837
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62837&action=edit
gzipped C++ source code
The attached C++ code does this with yesterday's gcc trunk:
foundBugs $ ../results/bin/g++ -c -w -ftrivial-auto-var-init=zero bug1140.cc
ads3/vmstr.cpp: In instantiation of ‘static int
CVmObjString::find_common(vm_val_t*, cons
t vm_val_t*, const char*, uint*) [with int dir = 1; uint = unsigned int]’:
required from here
tads3/vmstr.cpp:1865:26:
tads3/vmstr.cpp:1816:18: internal compiler error: Segmentation fault
0x2278857 internal_error
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0xf44849 ???
/home/dcb42/gcc/working/gcc/../../trunk/gcc/toplev.cc:325
0x735641 identifier_p
../../trunk/gcc/cp/cp-tree.h:713
0x735641 finish_goto_stmt
/home/dcb42/gcc/working/gcc/../../trunk/gcc/cp/semantics.cc:900
for g++ version
foundBugs $ ../results/bin/g++ -v
Using built-in specs.
COLLECT_GCC=../results/bin/g++
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20251117.asan.ubsan/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20251117.asan.ubsan --disable-bootstrap
--disable-doc --disable-multilib --with-build-config='bootstrap-asan
bootstrap-ubsan' --with-pkgversion=add4efbd129d87e4 --with-isl
--enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251117 (experimental) (add4efbd129d87e4)
foundBugs $
I have a reduction running. The problem first occurs sometime before
g:200b826af41d0dc0