Bug 22925 – importC: multi-dimensional array is not a static and cannot have static initializer

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-25T11:56:25Z
Last change time
2022-09-22T04:33:29Z
Keywords
ImportC, rejects-valid
Assigned to
No Owner
Creator
duser

Comments

Comment #0 by duser — 2022-03-25T11:56:25Z
void fn() { int arr[1][1] = { {1} }; } Error: variable `test.fn.arr` is not a static and cannot have static initializer
Comment #1 by dlang-bot — 2022-09-22T04:33:29Z
dlang/dmd pull request #14467 "fix Issue 22925 - importC: multi-dimensional array is not a static an…" was merged into master: - 89ec1e08c9e95f0b366ab22d70a2d367b76b6667 by Walter Bright: fix Issue 22925 - importC: multi-dimensional array is not a static and cannot have static initializer https://github.com/dlang/dmd/pull/14467