[cfe-dev] Variable length arrays are not permitted in C++

Eli Friedman eli.friedman at gmail.com
Tue Feb 16 07:39:19 PST 2010


On Tue, Feb 16, 2010 at 3:21 AM, Rene Rebe <rene at exactcode.de> wrote:
> Hi all,
>
> starting to play with Clang++ I notices this (building our Open Source ExactImage), currently on x86_64, T2 Linux:
>
> lib/Colorspace.cc:442:22: error: variable length arrays are not permitted in C++
>  uint8_t gray_lookup[vmax];

VLAs are disabled until someone goes through and makes sure they work
properly and that we give appropriate errors for C++-only constructs.

-Eli




More information about the cfe-dev mailing list