Ron Blaschke <[EMAIL PROTECTED]> wrote:
> Leopold Toetsch wrote:

>>> There's gotta be at least one element in the array.  Not sure why this
>>> compiles on other platforms, though.
>> gcc hasn't problems with it. Dunno what the standard says.

> MS VC++ has an error code "C2466 - cannot allocate an array of
> constant size 0," an indication the standard says that Thou Shalt
> Not Do It.

Ah, yep:

$ info gcc

,--[ C Extensions ]--------------------------
| Arrays of Length Zero
| =====================
|
|    Zero-length arrays are allowed in GNU C.
`--------------------------------------------

> Ron

leo

Reply via email to