-Warray-bounds issue

2007-07-23 Thread Matt Hargett
Hi, I'll be teaching a class this week on code analysis and I wanted to demonstrate GCC 4.3's new array bounds analysis capabilities. Unfortunately, I can't seem to get the new array bounds warnings to appear in gcc-4.3-20070720 using the commandline of '-O2 -Warray-bounds' with either of the f

Re: -Warray-bounds issue

2007-07-23 Thread Matt Hargett
Diego, Thanks so much for the quick reponse! Some more questions below :) On Monday 23 July 07 11:54:58 Diego Novillo wrote: > On 7/23/07 2:44 PM, Matt Hargett wrote: > > #include > > > > int main(int argc, char **argv) > > { > > size_t size = 16; > &