November 26, 2014 [Issue 13781] New: Tuple assign should be @nogc | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: bearophile_hugs@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-@nogc function 'std.typecons.Tuple!(string, "s").Tuple.opAssign!(Tuple!(string, "s")).opAssign' -- |
Copyright © 1999-2021 by the D Language Foundation