https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111967
Bug ID: 111967 Summary: [12/13/14 Regression] during GIMPLE pass: evrp ICE: in operator[], at vec.h:910 with -O2 -fno-tree-forwprop -fdump-tree-evrp-all Product: gcc Version: 14.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 56193 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56193&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fno-tree-forwprop -fdump-tree-evrp-all testcase.c during GIMPLE pass: evrp dump file: a-testcase.c.041t.evrp testcase.c: In function 'Append': testcase.c:12:1: internal compiler error: in operator[], at vec.h:910 12 | } | ^ 0xd68814 vec<edge_def*, va_gc, vl_embed>::operator[](unsigned int) /repo/gcc-trunk/gcc/vec.h:910 0xd68c11 vec<tree_node*, va_gc, vl_embed>::operator[](unsigned int) /repo/gcc-trunk/gcc/tree.h:3742 0xd68c11 block_range_cache::dump(_IO_FILE*, basic_block_def*, bool) /repo/gcc-trunk/gcc/gimple-range-cache.cc:490 0x256f97e ranger_cache::dump_bb(_IO_FILE*, basic_block_def*) /repo/gcc-trunk/gcc/gimple-range-cache.cc:1000 0x256ae12 gimple_ranger::dump_bb(_IO_FILE*, basic_block_def*) /repo/gcc-trunk/gcc/gimple-range.cc:630 0x256ba15 gimple_ranger::dump(_IO_FILE*) /repo/gcc-trunk/gcc/gimple-range.cc:706 0x17c7de8 execute_ranger_vrp(function*, bool, bool) /repo/gcc-trunk/gcc/tree-vrp.cc:1066 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-r14-4893-20231024164508-g99a6c1065de-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.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 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-4893-20231024164508-g99a6c1065de-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231024 (experimental) (GCC)