spin2cpp
spin2cpp copied to clipboard
Nested designators not supported for C initialization
This particularly affects anonymous structs, e.g.
union {
struct { float x, y; };
float raw[2];
} point = { .x = 1.0, .y = 2.0 }
fails, as does an attempt ot initialize with {.raw[0] = 1.0, .raw[1] = 2.0 }
.