This is the mail archive of the
mailing list for the GCC project.
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