https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64212
--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Well, can someone overwrite dllimport symbol by different definition? If not, it is a bug of decl_binds_to_current_def_p to return false here. If it can be inteprposed, I think the function symtab_node::noninterposable_alias should remove dllimport attribute on the alias created and so should symtab_node::make_decl_local Honza