https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87499
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- I think the issue is an inconsistency between what types are considered local and thus we end up duplicating them but not merge them for canonical type compute. I think we have a duplicate for this.