[Issue 22375] New: importC: Error: C non-array initializer not supported yet
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Oct 10 08:04:17 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22375
Issue ID: 22375
Summary: importC: Error: C non-array initializer not supported
yet
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
Seems like a case of wrong error, because it is an array
---
typedef struct SS {
unsigned short a, b, c, d;
} S;
static const S array[10] = {
{0, 0, 0, 0},
{4, 4, 8, 4},
{4, 5, 16, 8},
{4, 6, 32, 32},
{4, 4, 16, 16},
{8, 16, 32, 32},
{8, 16, 128, 128},
{8, 32, 128, 256},
{32, 128, 258, 1024},
{32, 258, 258, 4096}
};
---
Error: C non-array initializer (const(ushort)) {0, 0, 0, 0} not supported yet
Error: C non-array initializer (const(ushort)) {4, 4, 8, 4} not supported yet
Error: C non-array initializer (const(ushort)) {4, 5, 16, 8} not supported yet
Error: C non-array initializer (const(ushort)) {4, 6, 32, 32} not supported yet
Error: C non-array initializer (const(ushort)) {4, 4, 16, 16} not supported yet
Error: C non-array initializer (const(ushort)) {8, 16, 32, 32} not supported
yet
Error: C non-array initializer (const(ushort)) {8, 16, 128, 128} not supported
yet
Error: C non-array initializer (const(ushort)) {8, 32, 128, 256} not supported
yet
Error: C non-array initializer (const(ushort)) {32, 128, 258, 1024} not
supported yet
Error: C non-array initializer (const(ushort)) {32, 258, 258, 4096} not
supported yet
--
More information about the Digitalmars-d-bugs
mailing list