[Issue 22020] The profile flag does not work in Windows.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 28 08:51:16 UTC 2022


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

--- Comment #8 from Steven Dwy <me at yoplitein.net> ---
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

--


More information about the Digitalmars-d-bugs mailing list