Broken C array autosizing breaks glibc compile

Kaz Kylheku kaz@ashi.footprints.net
Fri Sep 22 09:52:00 GMT 2000


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



More information about the Gcc-bugs mailing list