www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12947] New: safe std.algorithm.copy

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

          Issue ID: 12947
           Summary:  safe std.algorithm.copy
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

void main()  safe {
    import std.algorithm: copy;
    int[] a, b;
    copy(a, b);
}

dmd 2.066alpha gives:

test.d(4): Error: safe function 'D main' cannot call system function
'std.algorithm.copy!(int[], int[]).copy'

--
Jun 19 2014