This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Zero-length arrays
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Subject: Re: Zero-length arrays
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 4 Jan 2001 10:39:32 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <10101041833.AA11026@vlsi1.ultra.nyu.edu>
On Thu, Jan 04, 2001 at 01:32:57PM -0500, Richard Kenner wrote:
> 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.
But that's my point. The front end should strip out the
zero length initializer before it gets to the back end to
be emitted.
r~