https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380
--- Comment #11 from Tobias Burnus <burnus at gcc dot gnu.org> --- Created attachment 35050 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35050&action=edit one.o.000i.cgraph: -fdump-ipa-cgraph for the LTO step for the unpatched GCC (r221482) (In reply to Jan Hubicka from comment #8, #9 and #10) First, I can still reproduce the issue with the unpatched GCC. In addition, the big program also compiles successfully with -fno-ipa-icf. Regarding "ld": As /usr/bin/ld is very old, that's with the current "ld" from the binutils-gdb GIT (via GCC's --with-plugin-ld=) - it fails identical when I replace the ld.bfd by ld.gold. Regarding -fdump-ipa-cgraph: If you prefer the dump of a patched version, please tell me. Regarding the patch in comment 8 (with "ExTERNAL" typo fixed): Unfortunately, it doesn't solve the problem - I still get the same ICE. Regarding the patch in comment 9: I had to change "alias" to "alias_item" due to ../../gcc/ipa-icf.c:1779:22: error: ‘alias’ was not declared in this scope if (DECL_EXTERNAL (alias->decl)) but afterwards: It no longer has an ICE!