[PR debug/87295] ICE in dwarf2out

Nathan Sidwell nathan@acm.org
Thu Sep 13 16:36:00 GMT 2018


Richard, Jan,  as early debug experts perhaps you can clue me in?

87295 is an ICE in lookup_external_ref, we strcmp a NULL 
die->die_id.die_symbol.

The die is being cloned in clone_as_declaration during a 
copy_ancestor_tree walk ultimately coming from 
copy_decls_for_unworthy_types.

The incoming die is DW_TAG_structure_type with comdat_type_p set.  We 
create a new_die_raw, which has NULL die_id.die_symbol and then never 
set that field (or another piece of the die_id union).

How is this supposed to work?

nathan
-- 
Nathan Sidwell



More information about the Gcc-patches mailing list