www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12805] New: nogc std.range.iota(FP)

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

          Issue ID: 12805
           Summary:  nogc std.range.iota(FP)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            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.range: iota;
    foreach (x; iota(5.0)) {}
}


test.d(3,21): Error:  nogc function 'D main' cannot call non- nogc function
'std.range.iota!double.iota'

--
May 26 2014