erik quanstrom wrote:
Yes, but in my example - sorry - "NeverDefined" doesn't mean "declared and
defined elsewhere (or not)" but "not declared .and. not defined".
true enough. the patch i sent still rejects your construct.
i'd still be interested to hear a perspective of someone with
more experience with the c compiler.
- erik
The point is how to compute the offset(s) of the last field at compile /
run time.
8c should reject not defined (named only) types, as *nix compilers do.
I think that it could be possible to allow the expansion of structs by a
final struct field
but this, in my opinion, would imply portability problems and in
general more error
prone code.
I prefer to have only the tricky but standard "char x[0]" tails.
Your patch will be included in the next distribution CD ?
adriano