This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -Warray-bounds issue


On 7/23/07 3:45 PM, Matt Hargett wrote:

> Okay, thanks for the clarification! Is this something that will be addressed 
> before GCC 4.3 is released? Interestingly, PC-Lint can only track the size of 
> the dynamic array if the const qualifier is used on the size parameter. 

Not that I know of.  Might make a nice project for your students, though.

> How can I get an array-bounds warning with malloc()?

Same limitation as before.  We don't do it.  Mudflap, however, should
track it.  You will get a runtime error, instead of a compile time error
though.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]