This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Broken C array autosizing breaks glibc compile
- To: Franz dot Sirl-kernel at lauterbach dot com
- Subject: Re: Broken C array autosizing breaks glibc compile
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Fri, 22 Sep 2000 08:37:35 -0700
- CC: gcc-bugs at gcc dot gnu dot org, libc-alpha at sources dot redhat dot com
- References: <00092123184600.14133@enzo.bigblue.local>
> From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
> Date: Thu, 21 Sep 2000 23:18:46 +0200
> static const struct keyword_t *
> repertoiremap_hash (const char *str, unsigned int len)
> {
> static const struct keyword_t wordlist[0] =
> {
> {"escape_char", 1, 0},
> {"comment_char", 2, 0},
> {"CHARIDS", 3, 0},
> {"END", 4, 0},
> };
GCC should produce an error, saying that zero-size arrays are not
permitted by ISO C; or it should produce a warning, saying that
zero-size arrays may not be initialized.
--
- Geoffrey Keating <geoffk@cygnus.com>