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

--- Comment #15 from cqwrteur <unlvsur at live dot com> ---
(In reply to Jason Merrill from comment #13)
> > The question is still how this library could work. The same simply
> > absolutely conflicts. Unless the standard allows inline to be discarded
> > across modules I don't see how this could work.
> 
> It works because everything in a header unit is attached to the global
> module.  If the same global module declarations are imported from multiple
> module units, any duplicates are discarded.

For translation units, inline function will get discarded in different
translation units and keep only one of them as weak symbol. I don't think this
applies to module

Reply via email to