This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Zero-length arrays
- To: rth at redhat dot com
- Subject: Re: Zero-length arrays
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Thu, 4 Jan 01 13:33:35 EST
- Cc: gcc-patches at gcc dot gnu dot org
I don't think it is ambiguous. Either it is extendable, or it is not
initialized at all. There's your front end bit -- the mere existance
of a constructor for the field.
No, there can be a constructor for the field, but it would have zero
length. I ran into this in the Ada library where the initializer for
this field was a 0-length STRING_CST.