https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64212

--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #5)
> 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

Thanks Honza,

well, dllimport symbol can be interposed ... well their function-stub can.  So
variant two seems to be the right thing to do.
I am about to prepare a patch for this ...

Reply via email to