www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12948] New: safe std.algorithm.sort().release

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

          Issue ID: 12948
           Summary:  safe std.algorithm.sort().release
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

void main()  safe {
    import std.algorithm;
    auto r = [1].sort().release;
}


dmd 2.066alpha gives:

temp.d(3): Error: safe function 'D main' cannot call system function
'std.range.SortedRange!(int[],
"a < b").SortedRange.release'

--
Jun 19 2014