D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22925 - importC: multi-dimensional array is not a static and cannot have static initializer
Summary: importC: multi-dimensional array is not a static and cannot have static initi...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ImportC, rejects-valid
Depends on:
Blocks:
 
Reported: 2022-03-25 11:56 UTC by duser
Modified: 2022-09-22 04:33 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description duser 2022-03-25 11:56:25 UTC
void fn()
{
	int arr[1][1] = { {1} };
}

Error: variable `test.fn.arr` is not a static and cannot have static initializer
Comment 1 Dlang Bot 2022-09-22 04:33:29 UTC
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