https://issues.dlang.org/show_bug.cgi?id=13781
Peter Alexander <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |m Component|Phobos |DMD --- Comment #1 from Peter Alexander <[email protected]> --- Adding @nogc to Tuple.opAssign gives: Error: @nogc function 'std.typecons.Tuple!(string, "s").Tuple.opAssign!(Tuple!(string, "s")).opAssign' cannot call non-@nogc function 'std.algorithm.swap!(Tuple!string).swap' Adding @nogc to swap makes the code compile. Both are templates, so @nogc should be inferred. Marking this as a DMD bug. --
