void main() { int[][2][3] arr; // causes "Range violation" at runtime } Affected: DMD 2.090.0 (beta)
Digger blames https://issues.dlang.org/show_bug.cgi?id=20465
Correct link: https://github.com/dlang/dmd/pull/10600
@MoonlightSentinel created dlang/dmd pull request #10698 "Fix Issue 20465 - Dynamic + static array declaration fail" fixing this issue: - Fix Issue 20465 - Dynamic + static array declaration fail Implements a cleaner solution for issue 10562 which tries to match the assigned expression against all dimensions of the target (instead of bluntly rewriting to keep type safety). Rewrites the original test to orderly check all possible combinations. https://github.com/dlang/dmd/pull/10698
dlang/dmd pull request #10698 "Fix Issue 20465 - Dynamic + static array declaration fail" was merged into stable: - 6ce09f814cc4669da3185a35e540164384be54fa by MoonlightSentinel: Fix Issue 20465 - Dynamic + static array declaration fail Implements a cleaner solution for issue 10562 which tries to match the assigned expression against all dimensions of the target (instead of bluntly rewriting to keep type safety). Rewrites the original test to orderly check all possible combinations. https://github.com/dlang/dmd/pull/10698