From: Linus Torvalds Date: Sun, 28 Aug 2005 19:48:02 GMT Subject: Re: [PATCH] Spell __attribute__ correctly in cache.h. Message-ID: In-Reply-To: <43120BC5.8060608@kaijanaho.info> On Sun, 28 Aug 2005, Antti-Juhani Kaijanaho wrote: > > This is not true under C99. If an array[] is the last member of a > struct (which is what we are, AFAIK, talking about), then sizeof that > struct is defined and gives the size of that struct as if the array's > size were zero (but the struct cannot be used in an automatic context). Ahh, thanks. Mea culpa, I thought it was illegal in general. In that case, the only reason not to use [] is that older gcc's don't like it, but even that version cut-off may be old enough to not matter. Anybody know? gcc-2.95 is still considered production at least for the kernel. I don't have it available to test whether it understands [] though. Linus