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

            Bug ID: 122663
           Summary: [16 regression] ICE when building
                    fbthrift-2025.04.14.00 ()
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-checking, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 62780
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62780&action=edit
ThriftServer.cpp.ii.xz

```
$ g++ -c ./thrift/lib/cpp2/CMakeFiles/thriftcpp2.dir/server/ThriftServer.cpp.ii
-O2 -ggdb3 -fcoroutines
[...]
during IPA pass: inline
In file included from
/var/tmp/portage/dev-cpp/fbthrift-2025.04.14.00-r2/work/fbthrift-2025.04.14.00/./thrift/lib/cpp2/async/AsyncProcessor.h:36:
/var/tmp/portage/dev-cpp/fbthrift-2025.04.14.00-r2/work/fbthrift-2025.04.14.00/./thrift/lib/cpp/TApplicationException.h:
In function ‘uint32_t apache::thrift::TApplicationException::write(Protocol_*)
const [with Protocol_ = apache::thrift::CompactProtocolWriter]’:
/var/tmp/portage/dev-cpp/fbthrift-2025.04.14.00-r2/work/fbthrift-2025.04.14.00/./thrift/lib/cpp/TApplicationException.h:236:12:
internal compiler error: in delink_imm_use, at ssa-iterators.h:285
  236 |   uint32_t write(Protocol_* prot_) const {
      |            ^~~~~
0x5582b843e5fb internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/diagnostic-global-context.cc:787
0x5582b843e79b fancy_abort(char const*, int, char const*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/diagnostics/context.cc:1806
0x5582b6b7386c delink_imm_use(ssa_use_operand_t*) [clone .part.0] [clone
.lto_priv.0]
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/ssa-iterators.h:285
0x5582b6b27bfc delink_imm_use(ssa_use_operand_t*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa-operands.cc:330
0x5582b6b27bfc operands_scanner::finalize_ssa_uses()
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa-operands.cc:460
0x5582b6b27bfc operands_scanner::finalize_ssa_stmt_operands()
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa-operands.cc:506
0x5582b6b27bfc operands_scanner::build_ssa_operands()
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa-operands.cc:1009
0x5582b86eba73 update_stmt_operands(function*, gimple*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa-operands.cc:1150
0x5582b88d8910 update_stmt(gimple*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/gimple-ssa.h:177
0x5582b88d8910 insert_debug_temp_for_var_def(gimple_stmt_iterator*, tree_node*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa.cc:478
0x5582b86f200a insert_debug_temps_for_defs(gimple_stmt_iterator*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-ssa.cc:506
0x5582b86f182b gsi_remove(gimple_stmt_iterator*, bool)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/gimple-iterator.cc:566
0x5582b8915a5a purge_all_uses
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/ipa-param-manipulation.cc:668
0x5582b8915a5a ipa_param_adjustments::modify_call(cgraph_edge*, bool,
hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/ipa-param-manipulation.cc:1014
0x5582b8876b0a cgraph_edge::redirect_call_stmt_to_callee(cgraph_edge*,
hash_set<tree_node*, false, default_hash_traits<tree_node*> >*) [clone
.constprop.0]
        /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraph.cc:1880
0x5582b885cba2 inline_transform(cgraph_node*)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/ipa-inline-transform.cc:858
0x5582b885b04d execute_one_ipa_transform_pass
        /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2333
0x5582b885b04d execute_all_ipa_transforms(bool)
        /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2397
0x5582b8652990 cgraph_node::expand()
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:1861
0x5582b859fe7b expand_all_functions
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/cgraphunit.cc:2051
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,rust --enable-obsolete
--enable-secureplt --disable-werror --with-system-zlib --enable-nls
--without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl,df --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 16.0.9999 p, commit
cb70f8268e2d1ee4cd0b7c2256d760d03cccd8d9' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-cet --disable-systemtap --enable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1 --disable-libgdiagnostics
--with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251111 (experimental)
1062eec2d431edbd9254683ba9fd30909589c821 (Gentoo 16.0.9999 p, commit
cb70f8268e2d1ee4cd0b7c2256d760d03cccd8d9)
```

Reply via email to