https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65232
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Hmm, it seems we triggered another bug of aliases WRT anchors. How does the declarations in question look like? (basically all aliases introduced by ipa-icf can also be coded by hand). Is it the path /* For a duplicate declaration, we can be called twice on the same DECL node. Don't discard the RTL already made. */ if (DECL_RTL_SET_P (decl)) ...? Why the declaration is considered duplicate to start with?