August 30 [Issue 24734] New: Test DMD with bounds checking for Array.opIndex | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24734 Issue ID: 24734 Summary: Test DMD with bounds checking for Array.opIndex Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: tim.dlang@t-online.de Currently dmd.root.array.Array.opIndex has no bounds checking enabled for performance. Adding `assert(i < length);` would have found https://issues.dlang.org/show_bug.cgi?id=24733 earlier. The automatic bounds checking for the buffer would not be enough, because the internal buffer was big enough. -- |
Copyright © 1999-2021 by the D Language Foundation