[Bug c/101446] -Wpedantic causes an error with zero size array

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Jul 14 15:21:46 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446

--- Comment #8 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
I think this is a bug.  Negative-size arrays are an unconditional error.  
Zero-size arrays should be a pedwarn-if-pedantic, regardless of whether 
the 0 is explicit or deduced from an initializer.


More information about the Gcc-bugs mailing list