https://issues.dlang.org/show_bug.cgi?id=22020
--- Comment #8 from Steven Dwy <[email protected]> --- Further investigation suggests `__equals` may be to blame: ``` int main() { import std.random; // to defeat constant folding auto a = new int[4]; foreach(ref v; a) v = uniform(0, 10); auto b = new int[4]; foreach(ref v; b) v = uniform(0, 10); return cast(int)(a == b); } ``` This is further supported by debugging a faulty binary, with the debugger stopping on the first overload of __equals: https://github.com/dlang/druntime/blob/cf3f7fe/src/core/internal/array/equality.d#L20-L48 --
