https://issues.dlang.org/show_bug.cgi?id=21429
Tim <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from Tim <[email protected]> --- It also fails for small arrays, but only if some elements have to be swapped: enum x = (){ import std.algorithm, std.typecons; auto x = [tuple!int(2), tuple!int(1)]; x.sort; return x; }(); The problem can also be reproduced by calling swap directly: enum x = (){ import std.algorithm, std.typecons; Tuple!int a, b; swap(a, b); return 0; }(); --
