[Bug c++/114990] Compiler errors in <type_traits> compiling a module-based app
unlvsur at live dot com
gcc-bugzilla@gcc.gnu.org
Tue Jul 2 17:16:12 GMT 2024
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
More information about the Gcc-bugs
mailing list