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: Geoff Keating <geoffk at cygnus dot com>
- Subject: Re: Broken C array autosizing breaks glibc compile
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Fri, 22 Sep 2000 09:52:29 -0700 (PDT)
- cc: Franz dot Sirl-kernel at lauterbach dot com, gcc-bugs at gcc dot gnu dot org, libc-alpha at sources dot redhat dot com
On Fri, 22 Sep 2000, Geoff Keating wrote:
> 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.
That only happens in -pedantic mode. The GNU C gods don't see zero size arrays
as a serious programming error, but only as the subject of nitpicking by
language pedants. Hey, who cares if the program fails, or is rejected by other
compilers? It means nothing that ANSI/ISO C wants a diagnostic! :)