https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77674
--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I am testing the following: Index: symtab.c =================================================================== --- symtab.c (revision 243291) +++ symtab.c (working copy) @@ -2214,6 +2214,8 @@ symtab_node::binds_to_current_def_p (sym { if (!definition) return false; + if (transparent_alias) + return symtab_node::binds_to_current_def_p (get_alias_target ()); if (decl_binds_to_current_def_p (decl)) return true;