Re: static array with constant size

2008-03-04 Thread Andrew Pinski
On 3/4/08, Elazar Leibovich <[EMAIL PROTECTED]> wrote: > I'm trying to compile the following piece of code: > static const int ln = 10; > static int ar[ln]; > I'm getting: > storage size of 'ar' isn't constant > size of variable 'ar' is too large > Is the code legal? Can you provide me with

Re: static array with constant size

2008-03-04 Thread Elazar Leibovich
I'm trying to compile the following piece of code: static const int ln = 10; static int ar[ln]; I'm getting: storage size of 'ar' isn't constant size of variable 'ar' is too large Is the code legal? Can you provide me with references to its legality or a discussion about it? it seems to be compila