[Issue 12742] New: @nogc std.algorithm.remove

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue May 13 03:17:20 PDT 2014


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

          Issue ID: 12742
           Summary: @nogc std.algorithm.remove
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: bearophile_hugs at eml.cc

void main() @nogc {
    import std.algorithm;
    int[3] a = [1, 2, 3];
    int[] b = a[].remove!(SwapStrategy.unstable)(0);
}



DMD 2.066alpha gives:

temp.d(4,49): Error: @nogc function 'D main' cannot call non- at nogc function
'std.algorithm.remove!(cast(SwapStrategy)0, int[], int).remove'

--


More information about the Digitalmars-d-bugs mailing list