digitalmars.D.bugs - [Issue 22375] New: importC: Error: C non-array initializer not
- d-bugmail puremagic.com (48/48) Oct 10 2021 https://issues.dlang.org/show_bug.cgi?id=22375
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 puremagic.com Reporter: ibuclaw 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 --
Oct 10 2021