https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122185
Bug ID: 122185
Summary: [16 Regression] ICE: in propagate_necessity, at
tree-ssa-dce.cc:1148
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 62514
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62514&action=edit
auto-reduced testcase
$ x86_64-pc-linux-gnu-g++ signature.cpp.ii -O
during GIMPLE pass: cddce
signature.cpp.ii: In static member function 'static void adl_serializer<
<template-parameter-1-1>, <template-parameter-1-2>
>::from_json(BasicJsonType&&, TargetType) [with BasicJsonType = basic_json<>&;
TargetType = int; <template-parameter-1-1> = int; <template-parameter-1-2> =
void]':
signature.cpp.ii:45:1: internal compiler error: in propagate_necessity, at
tree-ssa-dce.cc:1148
45 | }
| ^
0x2ef53ac internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:786
0xefd9f5 fancy_abort(char const*, int, char const*)
/repo/gcc-trunk/gcc/diagnostics/context.cc:1803
0x9c61bb propagate_necessity
/repo/gcc-trunk/gcc/tree-ssa-dce.cc:1148
0x9c61bb perform_tree_ssa_dce
/repo/gcc-trunk/gcc/tree-ssa-dce.cc:2207
0x1a79a75 execute_dce
/repo/gcc-trunk/gcc/tree-ssa-dce.cc:2276
0x1a79a75 execute
/repo/gcc-trunk/gcc/tree-ssa-dce.cc:2337
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-g++ -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g++
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20251007040541-r16-4261-gd3e963d1ccc350-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20251007040541-r16-4261-gd3e963d1ccc350-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251007 (experimental) (GCC)