[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#177303: Accepts illegal declaration "int x[2, 3];" in C99 mode




On Saturday, January 18, 2003, at 11:44 AM, Falk Hueffner wrote:
The declaration

int x[2, 3];

is not legal in C99, since "2, 3" is not an assignment-expression.

I'm not a C99 language lawyer, but are you sure? Is the comma operator allowed there, or would one have to write "int x[(2,3)]" to get that behavior?




Reply to: