A structure including a zero element array can be compiled by Pelles C 7.00.355 (x64):
typedef struct {
int dummy;
int data[];
} DUMMY_STRUCT;
But a structure with a union including zero element array can't be compiled by Pelles C 7.00.355 (x64):
typedef struct {
int dummy;
union {
int padding;
int data[];
};
} DUMMY_STRUCT;
Got an error message:
error #2065: Invalid use of incomplete type 'int []'.
I only found one such structure named WNODE_ALL_DATA in "wmistr.h" header until now.