www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13654] New: nogc std.algorithm.enumerate

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

          Issue ID: 13654
           Summary:  nogc std.algorithm.enumerate
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

void main()  nogc {
    import std.algorithm: enumerate;
    int[1] arr;
    auto r = arr[].enumerate;
}


DMD 2.067alpha gives:

test.d(4,19): Error:  nogc function 'D main' cannot call non- nogc function
'std.range.enumerate!(uint, int[]).enumerate'

--
Oct 25 2014