This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Zero-length arrays
- To: dkorn at pixelpower dot com
- Subject: RE: Zero-length arrays
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 4 Jan 01 09:58:18 EST
- Cc: gcc at gcc dot gnu dot org
Aren't they only allowed at the *end* of structs ?
That's what the documentation implies (though it's less clear that it
could be) but there's no code to check for it.
Note that zero-length arrays should be allowed anywhere, but everywhere but the
end they really *are* zero length and aren't extendable.