https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64988
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- And concerning Jakub's question, get_alias_target will ICE when the target does not exist :). This is the case in corner situation (call graph construction and function removal - where you hit it). Also weakref does not need to have a target. This is signalized by definition flag.