www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18762] New: The spec tester fails to link examples with


          Issue ID: 18762
           Summary: The spec tester fails to link examples with  __stdin.o
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: greensunny12 gmail.com

Test the D Language specification
../dmd/generated/linux/release/64/dmd -run tools/dspec_tester.d
void main() {
import std.stdio;
import std.algorithm;
int[] s = [1, 2, 3, 4];

copy(s[1..3], s[0..2]);
assert(s == [2, 3, 3, 4]);

gcc: error: __stdin.o: No such file or directory
Error: linker exited with status 1

Happened on a few PRs (e.g. https://github.com/dlang/phobos/pull/6443,
https://github.com/dlang/phobos/pull/6453 or

See also: https://github.com/dlang/dlang.org/pull/2345

Apr 14 2018