SDCC TD- 4.5.0 #15242 (MINGW32)
typedef union {
struct {
uint8_t A;
uint8_t B;
uint8_t C;
uint8_t D;
};
uint32_t LongWord;
} Union_t;
static const Union_t UnionData =
{
.A = 128,
.B = 128,
.C = 128,
.D = 128
};
bug.c:13: error 147: excess elements in struct initializer after 'UnionData'
Things are even worse!
Please note that in all cases Size = 4 -> correct
But look at the listing and you'll see that the constants are all bigger (and wrong).
Sorry, probably I misplaced the category of this bug.
Probably it's real place should be "front end".
Fixed (not the bug, just the category).