https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88046
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- This particular ICE can be fixed with avoiding generating inheritance DIEs late. Index: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c (revision 267930) +++ gcc/dwarf2out.c (working copy) @@ -25046,7 +25046,7 @@ gen_member_die (tree type, dw_die_ref co the TREE node representing the appropriate (containing) type. */ /* First output info about the base classes. */ - if (binfo) + if (binfo && early_dwarf) { vec<tree, va_gc> *accesses = BINFO_BASE_ACCESSES (binfo); int i; I am going to test that.