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

Rene Rebe rene at exactcode.de
Tue Feb 16 07:52:19 PST 2010


Hi,

On 16.02.2010, at 16:39, Eli Friedman wrote:

> 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.


Well, what's needed? I'm certainly interested in LLVM and getting further into it. Though I'm not yet too familiar with the codebase, yet, nor am an language lawyer.

Basic, POD, use appear to just work after I enabled it with the patch posted before. Any pointers welcome.

  René
-- 
  René Rebe, ExactCODE GmbH, Jaegerstr. 67, DE-10117 Berlin
  http://exactcode.com | http://t2-project.org | http://rene.rebe.name





More information about the cfe-dev mailing list