[Issue 19123] -allinst gives undefined reference linker errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 11 01:42:12 UTC 2019


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

GoaLitiuM <goalitium at dissues.mail.kapsi.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |goalitium at dissues.mail.kaps
                   |                            |i.fi

--- Comment #6 from GoaLitiuM <goalitium at dissues.mail.kapsi.fi> ---
I recently hit a bug similar to this one, if not the same one, with this
following code:

import std.variant;
import std.typecons;

struct S {}
void main()
{   
    alias T = Typedef!(S, S.init);
    Variant v = T();
}

> /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:276: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8typecons__T7TypedefTS9onlineapp1SVQoS0VAyanZQBhTaZ9__lambda1MFZQBg3putMFNaNbNiNfaZv'
> /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:276: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8typecons__T7TypedefTS9onlineapp1SVQoS0VAyanZQBhTaZ9__lambda1MFZQBg3putMFNaNbNiNfaZv'
> /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:276: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8typecons__T7TypedefTS9onlineapp1SVQoS0VAyanZQBhTaZ9__lambda1MFZQBg3putMFNaNbNiNfaZv'
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1

--


More information about the Digitalmars-d-bugs mailing list