[Issue 23154] Linker error through templated __traits(compiles) in separate compilation unit

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 13 14:35:03 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23154

--- Comment #1 from Jan Jurzitza <d.bugs at webfreak.org> ---
note:

linker looks for
_D8protocol__T7SelfRefTbZQl6foobarMFNaNbNiNfZm
demangled: `pure nothrow @nogc @safe ulong
protocol.SelfRef!(bool).SelfRef.foobar()`

the protocol.a file contains the following foobar symbol:
_D8protocol__T7SelfRefTbZQl6foobarMFNbZm
demangled: `nothrow ulong protocol.SelfRef!(bool).SelfRef.foobar()`

so it looks like the foo.d module doesn't resolve the attributes consistently
with the other compilation unit.

--


More information about the Digitalmars-d-bugs mailing list