[Issue 13781] New: Tuple assign should be @nogc

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 26 13:18:43 PST 2014


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

          Issue ID: 13781
           Summary: Tuple assign should be @nogc
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody at puremagic.com
          Reporter: bearophile_hugs at eml.cc

void main() @nogc {
    import std.typecons: Tuple;
    alias T = Tuple!(string,"s");
    T x;
    x = T.init;
}


dmd 2.067alpha:

test.d(5,7): Error: @nogc function 'D main' cannot call non- at nogc function
'std.typecons.Tuple!(string, "s").Tuple.opAssign!(Tuple!(string,
"s")).opAssign'

--


More information about the Digitalmars-d-bugs mailing list