May 07, 2019
https://issues.dlang.org/show_bug.cgi?id=19851

          Issue ID: 19851
           Summary: std.concurrency linker errors with -dip1000
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: zorael@gmail.com

With 2.086 my project no longer successfully builds with -dip1000. It still does with 2.085.1.

Dustmite reduced it to the following (https://run.dlang.io/is/JXsXMQ):

import std.concurrency;
import core.time;

void main()
{
    receiveTimeout(0.seconds);
}


/usr/bin/ld:
.dub/build/application-debug-linux.posix-x86_64-dmd_2086-301FABA8FA5858F19823E330F087FDB6/kameloso.o:
in function
`_D3std11concurrency10MessageBox__T3getTS4core4time8DurationZQBaMFQBaZ4scanMFKSQCyQCx__T4ListTSQDoQDn7MessageZQwZb':
/win/temp/Digger/work/result/bin/../import/std/concurrency.d:2050: undefined
reference to
`_D3std11concurrency__T4ListTSQBbQBa7MessageZQw7opSliceMFNaNbNiNjZSQCmQCl__TQCbTQBzZQCj5Range'
/usr/bin/ld:
.dub/build/application-debug-linux.posix-x86_64-dmd_2086-301FABA8FA5858F19823E330F087FDB6/kameloso.o:
in function
`_D3std11concurrency10MessageBox__T3getTS4core4time8DurationZQBaMFQBaZ3ptyMFKSQCxQCw__T4ListTSQDnQDm7MessageZQwZb':
/win/temp/Digger/work/result/bin/../import/std/concurrency.d:2096: undefined
reference to
`_D3std11concurrency__T4ListTSQBbQBa7MessageZQw7opSliceMFNaNbNiNjZSQCmQCl__TQCbTQBzZQCj5Range'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1

--