empty initialisers for arrays of inferred size

Jonathan Wakely jwakely.gcc@gmail.com
Sat Dec 10 22:28:00 GMT 2011

2011/12/10 Krzysztof Żelechowski:
> Even if it is, it is undocumented that zero-length arrays need not be struct
> members.

The text says "Zero-length arrays are allowed in GNU C."

It doesn't say they're only allowed in structs.

"They are very useful as the last element of a structure"

Very useful in structs does not mean only valid in structs.

More information about the Gcc-help mailing list