https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101947
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- The problem is that the dwarf2out_early_finish path does not finalize base types so calc_die_sizes cannot compute the size of DW_OP_deref_type: case DW_OP_deref_type: case DW_OP_GNU_deref_type: { unsigned long o = get_base_type_offset (loc->dw_loc_oprnd2.v.val_die_ref.die); size += 1 + size_of_uleb128 (o); } break;