https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66597
--- Comment #2 from Andreas Krebbel <krebbel at gcc dot gnu.org> --- (In reply to Aldy Hernandez from comment #1) > Is that the actual line number (18034) with current mainline? 18034 does > not look like a place we could ICE in. > > Perhaps it's the ICE in 25535, because if it is, then it is a duplicate of > PR66482. > > Could you please verify? I've just re-checked with r224673 (0bf0c7922570f90172ab21c8fa7782bff9e2fe60) and it stays at 18034: (gdb) bt #0 gen_formal_parameter_die (node=0x3fff7499b80, origin=0x0, emit_name_p=true, context_die=0x3fff70ba640) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:18034 #1 0x00000000805a8b5e in gen_decl_die (decl=0x3fff7499b80, origin=0x0, context_die=0x3fff70ba640) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:21539 #2 0x000000008059f75e in gen_subprogram_die (decl=0x3fff749dc00, context_die=0x0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:19133 #3 0x00000000805a853a in gen_decl_die (decl=0x3fff749dc00, origin=0x0, context_die=0x0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:21450 #4 0x00000000805a9d12 in dwarf2out_decl (decl=0x3fff749dc00) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:21923 #5 0x000000008059dc92 in dwarf2out_abstract_function (decl=0x3fff749dc00) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:18489 #6 0x00000000805a82dc in gen_decl_die (decl=0x0, origin=0x3fff749dc00, context_die=0x3fff74c6aa0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:21407 #7 0x00000000805a686a in process_scope_var (stmt=0x3fff70e72a0, decl=0x0, origin=0x3fff749dc00, context_die=0x3fff74c6aa0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:21008 #8 0x00000000805a69d0 in decls_for_scope (stmt=0x3fff70e72a0, context_die=0x3fff74c6aa0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:21036 #9 0x00000000805a278a in gen_lexical_block_die (stmt=0x3fff70e72a0, context_die=0x3fff73535f0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:19904 #10 0x00000000805a64f4 in gen_block_die (stmt=0x3fff70e72a0, context_die=0x3fff73535f0) at /home/andreas/clean/../gcc/gcc/dwarf2out.c:20977 ... 18029 already generated a DIE in 18030 dwarf2out_early_global_decl. 18031 18032 Once we remove dwarf2out_abstract_function, this 18033 gcc_assert should be a gcc_unreachable. */ 18034 gcc_assert (parm_die->die_parent->die_tag 18035 == DW_TAG_GNU_formal_parameter_pack); 18036 } 18037 } (gdb) p parm_die->die_parent->die_tag $1 = DW_TAG_subprogram