• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Variable length arrays in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Variable length arrays in debugger
      • From: Jim Ingham <email@hidden>
References: 
 >Variable length arrays in debugger (From: Tverdokhleb Andrey <email@hidden>)
 >Re: Variable length arrays in debugger (From: Howard Moon <email@hidden>)

  • Prev by Date: Re: Per-file Warnings suppression?
  • Next by Date: Re: Variable length arrays in debugger
  • Previous by thread: Re: Variable length arrays in debugger
  • Next by thread: Re: Variable length arrays in debugger
  • Index(es):
    • Date
    • Thread