> The C++ reference by Stroustrup also prohibits such an
> assignment. Can someone please explain why gcc allows it.

This is a variable-length array, see (gcc)Variable Length in the info
pages (under C Extensions). These arrays are also allowed as per
Standard C 99; they are not part of Standard C++ 98.

Regards,
Martin

Reply via email to