3 ms·
It's weird. As far as I can tell, GCC's documentation[1] clearly states: Flexible array members may only appear as the last member of a struct that is otherwis
by unwind 9y ago
It's weird. As far as I can tell, GCC's documentation[1] clearly states:
Flexible array members may only appear as the last member of a struct that is otherwise non-empty.
What is the article referring to, then?
1: https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Zero-Length.html#Zero-Length https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Zero-Length.htm...
- jwilk 9y agoflexible array member ≠ variable-length array See: https://news.ycombinator.com/item?id=15303211 https://news.ycombinator.com/item?id=15303211