[Issue 13654] New: @nogc std.algorithm.enumerate

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 25 08:46:06 PDT 2014


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 at puremagic.com
          Reporter: bearophile_hugs at 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- at nogc function
'std.range.enumerate!(uint, int[]).enumerate'

--


More information about the Digitalmars-d-bugs mailing list