digitalmars.D.bugs - [Issue 22588] New: Array corruption with std.conv.to
- d-bugmail puremagic.com (27/27) Dec 12 2021 https://issues.dlang.org/show_bug.cgi?id=22588
https://issues.dlang.org/show_bug.cgi?id=22588 Issue ID: 22588 Summary: Array corruption with std.conv.to Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: naydef abv.bg The assertion fails in the following code: ``` import std.math; import std.conv; void main(string[] args) { auto res = to!(float[2][])([[0, 0]]); assert(isClose(res[0][1], 0.0)); //Fails } ``` It seems to be recently introduced issue. I upgraded from DMD 2.096 to DMD 2.098 and stumbled upon it. Probably related to this issue https://issues.dlang.org/show_bug.cgi?id=22583 --
Dec 12 2021