https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103246
--- Comment #19 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I was too optimistic - the patch does not help. The problem is related to modref. With lto-partition=max the problem triggers while lto-partition=one hides it becuase late tree modref recomputes summaries and after that things works as expected. It may be wrong summary produced by the ipa-modref and streamed to the ltrans or some TBAA related bug. Disabling TBAA checks from the summary use makes the testcase to pass and there are some TBAA violation warnings when linking. I am isolating the problematic disambiguation.