Re: Variable length arrays in debugger
Re: Variable length arrays in debugger
- Subject: Re: Variable length arrays in debugger
- From: "Sean McBride" <email@hidden>
- Date: Wed, 1 Oct 2008 14:25:15 -0400
- Organization: Rogue Research
On 10/1/08 11:16 AM, Howard Moon said:
>> I've noticed that debugger in Xcode 3.1.1 always shows variable
>> length arrays as "out of scope". If I change it to constant size
>> array it works as it supposed to.
>> I'm talking about this kind of things:
>>
>> int size;
>> ....
>> int array[size];
>>
>> I'm ready to file a bug, but would like to figure before if I'm not
>> alone in this or may be there is some option needs to be enabled in
>> compiler (couldn't find anything though).
>
>Is that an extension allowed in GCC? According to the C++ Standard,
>arrays must have a compile-time constant size. Perhaps the Xcode
>debugger assumes that rule to be the case, even if the compiler has
>allowed it to compile?
It is part of C99. Maybe also in C++0x ?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden