May 19, 2014
https://issues.dlang.org/show_bug.cgi?id=12768

          Issue ID: 12768
           Summary: @nogc algorithm.splitter
           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() @nogc {
    string txt;
    import std.algorithm: splitter;
    foreach (x; txt.splitter) {}
}

DMD 2.066alpha returns:

test.d(4): Error: @nogc function 'D main' cannot call non-@nogc function
'std.algorithm.splitter!(immutable(char)).splitter'
test.d(4): Error: @nogc function 'D main' cannot call non-@nogc function
'std.algorithm.splitter!(immutable(char)).splitter.Result.popFront'
test.d(4): Error: @nogc function 'D main' cannot call non-@nogc function
'std.algorithm.splitter!(immutable(char)).splitter.Result.front'

--