https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105121
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to David Binderman from comment #3) > (In reply to Richard Biener from comment #2) > > Are you sure you have object files compiled with the same compiler as you > > link with? > > I just compiled it again. Yes, I have the same compiler. > It looks like a mismatch in LTO readers and writers to me. > > Would the .i file that is upstream of the .o file help ? Yes, that could possibly reproduce the issue. Is the ICE happening in the WPA process? (add -v so you'd see that)