erik quanstrom wrote:
8c silently accept the above definition and sizeof(U) is 100. ???
The sources which include the definition of "NeverDefined" are
regularly compiled too and sizeof(U) = 100 + sizeof(NeverDefined).
i think the issue is that there isn't currently a distinction
between this
typedef struct A A;
struct A {
int expand[0];
};
which is perfectly legal and this
typedef struct U U;
typedef struct A A;
struct A {
U;
};
Yes, but in my example - sorry - "NeverDefined" doesn't mean "declared and
defined elsewhere (or not)" but "not declared .and. not defined".
No doubt this should be a fatal error, but 8c accepts.
What's my mistake ?
adriano