digitalmars.D.bugs - [Issue 19123] New: -allinst gives undefined reference linker errors
- d-bugmail puremagic.com (23/30) Jul 27 2018 https://issues.dlang.org/show_bug.cgi?id=19123
https://issues.dlang.org/show_bug.cgi?id=19123 Issue ID: 19123 Summary: -allinst gives undefined reference linker errors Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: zorael gmail.com Manjaro/Arch x86_64, dmd 2.081.1, ldc 1.10.0. run.dlang.io also shows the same behaviour "since 2.080.1". Reduced example, fails to link with -allinst but works without (dmd and ldc): void main() { import std.stdio; import std.datetime; writefln("%s", Clock.currTime); }$ dmd -allinst test.d /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:273: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8datetime7systime7SysTimeTaZ9__lambda2MFZ1S3putMFNaNbNiNfaZv' /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:273: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8datetime7systime7SysTimeTaZ9__lambda2MFZ1S3putMFNaNbNiNfaZv' /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:273: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8datetime7systime7SysTimeTaZ9__lambda2MFZ1S3putMFNaNbNiNfaZv' /dlang/dmd/linux/bin64/../../src/phobos/std/range/primitives.d:273: error: undefined reference to '_D3std6format__T11hasToStringTSQBd8datetime7systime7SysTimeTaZ9__lambda2MFZ1S3putMFNaNbNiNfaZv' collect2: error: ld returned 1 exit status Error: linker exited with status 1--
Jul 27 2018