https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116922
Bug ID: 116922 Summary: [12/13/14/15 Regression] ICE: in op_iter_init, at ssa-iterators.h:604 with -Ofast Product: gcc Version: 15.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 59247 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59247&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Ofast testcase.c -Wno-psabi during GIMPLE pass: backprop testcase.c: In function 'foo': testcase.c:5:1: internal compiler error: in op_iter_init, at ssa-iterators.h:604 5 | foo (int c, V v, V *r) | ^~~ 0x2c45ffe internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xe7b953 fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1570 0x8aed28 op_iter_init(ssa_op_iter*, gimple*, int) /repo/gcc-trunk/gcc/ssa-iterators.h:604 0x8af96b op_iter_init(ssa_op_iter*, gimple*, int) /repo/gcc-trunk/gcc/tree.h:3779 0x8af96b op_iter_init_tree(ssa_op_iter*, gimple*, int) /repo/gcc-trunk/gcc/ssa-iterators.h:670 0x8af96b release_defs(gimple*) /repo/gcc-trunk/gcc/tree-ssanames.cc:869 0x2a34d2d remove_unused_var /repo/gcc-trunk/gcc/gimple-ssa-backprop.cc:667 0x2a34d2d execute /repo/gcc-trunk/gcc/gimple-ssa-backprop.cc:925 0x2a34d2d execute /repo/gcc-trunk/gcc/gimple-ssa-backprop.cc:962 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-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r15-3987-20241001125221-g60fa7f51c84-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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 --with-cloog --with-ppl --with-isl --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-r15-3987-20241001125221-g60fa7f51c84-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241001 (experimental) (GCC)