host_integerp vs [] decls

Richard Henderson rth@redhat.com
Mon Sep 17 16:20:00 GMT 2001


On Fri, Sep 14, 2001 at 09:33:14PM -0400, DJ Delorie wrote:
> 	* expr.c (store_constructor): Handle empty arrays.

Err, incidentally, the original test case

  int a[][0] = {{1}};

is bogus.  This should be handled in the same way that

  int a[][1] = {{1,2}};

is rejected.  The only initializer case that might
be allowable is

  int a[][0] = {{}};


r~



More information about the Gcc mailing list