https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118205
Bug ID: 118205 Summary: [15 Regression] ICE: in as_a, at is-a.h:255 with -O -floop-parallelize-all -ftree-parallelize-loops=2 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 59979 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59979&action=edit auto-reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -floop-parallelize-all -ftree-parallelize-loops=2 testcase.C during GIMPLE pass: parloops testcase.C: In member function 'int Gfx10Lib::HwlComputeMaxMetaBaseAlignments() const': testcase.C:6:5: internal compiler error: in as_a, at is-a.h:255 6 | int Gfx10Lib::HwlComputeMaxMetaBaseAlignments() const { | ^~~~~~~~ 0x3124421 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xfd8917 fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1722 0x98d2e9 gimple_statement_with_memory_ops* as_a<gimple_statement_with_memory_ops*, gimple>(gimple*) /repo/gcc-trunk/gcc/is-a.h:255 0x98d6bb gphi const* as_a<gphi const*, gimple const>(gimple const*) /repo/gcc-trunk/gcc/tree-parloops.cc:964 0x98d6bb gimple_phi_result(gimple const*) /repo/gcc-trunk/gcc/gimple.h:4617 0x98d6bb reduction_phi /repo/gcc-trunk/gcc/tree-parloops.cc:958 0x1a636d7 try_create_reduction_list /repo/gcc-trunk/gcc/tree-parloops.cc:3553 0x1a636d7 parallelize_loops /repo/gcc-trunk/gcc/tree-parloops.cc:4118 0x1a64df1 execute /repo/gcc-trunk/gcc/tree-parloops.cc:4238 0x1a64df1 execute /repo/gcc-trunk/gcc/tree-parloops.cc:4217 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-20241226001859-r15-6441-g45b017b467bb91-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-20241226001859-r15-6441-g45b017b467bb91-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241226 (experimental) (GCC)