https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113394
Bug ID: 113394 Summary: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-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 This fails on the gcc.c-torture/compile/20020210-1.c testcase. Compiler output: $ x86_64-pc-linux-gnu-gcc -fstrub=internal -g /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:15: warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration 2 | void f(int a, struct {int b[a];} c) {} | ^~~~~~ /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c: In function 'f.strub.0': /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:38: error: type variant with 'TYPE_ALIAS_SET_KNOWN_P' 2 | void f(int a, struct {int b[a];} c) {} ... during RTL pass: final /repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:38: internal compiler error: 'verify_type' failed 0x1837cee verify_type(tree_node const*) /repo/gcc-trunk/gcc/tree.cc:14386 0x1051814 gen_type_die_with_usage /repo/gcc-trunk/gcc/dwarf2out.cc:26258 0x104e566 gen_type_die /repo/gcc-trunk/gcc/dwarf2out.cc:26489 0x104e566 gen_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:27226 0x104a93d gen_subprogram_die /repo/gcc-trunk/gcc/dwarf2out.cc:24094 0x104eab9 gen_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:27106 0x104f6eb dwarf2out_decl /repo/gcc-trunk/gcc/dwarf2out.cc:27687 0x104fb8e dwarf2out_function_decl /repo/gcc-trunk/gcc/dwarf2out.cc:27702 0x10dfea4 rest_of_handle_final /repo/gcc-trunk/gcc/final.cc:4273 0x10dfea4 execute /repo/gcc-trunk/gcc/final.cc:4317 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-7237-20240115123527-g65678b2bae5-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/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-7237-20240115123527-g65678b2bae5-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240115 (experimental) (GCC)