Error: array dimension overflow
    Brian Hay 
    bhay at construct3d.com
       
    Fri Mar 21 19:36:18 PDT 2008
    
    
  
Jarrett Billingsley wrote:
> "Brian Hay" <bhay at construct3d.com> wrote in message 
> news:frviab$126$1 at digitalmars.com...
>> Newbie Q:
>>
>> During compilation I'm getting the error: "array dimension overflow" but 
>> it doesn't provide any information as to where (module and line number) 
>> the error might be, so I'm at a loss. Other errors seem to provide such 
>> information.
>>
>> Any ideas?
> 
> Hee hee hee.
> 
> static int[] x = [-1: 1];
> 
> There's some kind of funky logic in the compiler which for some reason does 
> not detect negative initialization indices
Thanks Jarrett, that was it.
    
    
More information about the Digitalmars-d-learn
mailing list