This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Broken C array autosizing breaks glibc compile


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! :)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]