[Issue 22588] Array corruption with std.conv.to

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 13 12:22:48 UTC 2021


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

--- Comment #1 from naydef <naydef at abv.bg> ---
Thanks to Herringway, managed to reduce the issue to appender:

```
import std.math;
import std.array;
import std.stdio;
void main() @safe
{
    auto x = appender!(float[2][])();
    x ~= staticArray([0.0f, 0.0f]);
    writefln("Data: %s", x.data);
    assert(isClose(x.data[0][1], 0.0));
}
```

--


More information about the Digitalmars-d-bugs mailing list