https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116664
Bug ID: 116664 Summary: ICE: in force_decl_die, at dwarf2out.cc:26937 with -fno-emit-struct-debug-baseonly Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: debug 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 59089 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59089&action=edit auto-reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -g -fno-emit-struct-debug-baseonly testcase.ii : In function 'void get_container()': :22:1: internal compiler error: in force_decl_die, at dwarf2out.cc:26937 0x2ef1bbe internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xf557d3 fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1657 0x8581da force_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:26937 0x13f131d force_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:26888 0x13f131d dwarf2out_imported_module_or_decl_1 /repo/gcc-trunk/gcc/dwarf2out.cc:27565 0x140f3ff decls_for_scope /repo/gcc-trunk/gcc/dwarf2out.cc:26756 0x13ed463 gen_subprogram_die /repo/gcc-trunk/gcc/dwarf2out.cc:24228 0x13f2049 gen_decl_die /repo/gcc-trunk/gcc/dwarf2out.cc:27193 0x13f2c9b dwarf2out_decl /repo/gcc-trunk/gcc/dwarf2out.cc:27774 0x13f3116 dwarf2out_early_global_decl /repo/gcc-trunk/gcc/dwarf2out.cc:27415 0x126c784 c_common_finalize_early_debug() /repo/gcc-trunk/gcc/c-family/c-common.cc:9954 0x136fd62 symbol_table::finalize_compilation_unit() /repo/gcc-trunk/gcc/cgraphunit.cc:2579 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-3558-20240910125013-gc726a664312-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-3558-20240910125013-gc726a664312-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240910 (experimental) (GCC)