------- Comment #31 from mueller at gcc dot gnu dot org 2006-02-19 21:42 ------- I see many false positives and negatives with the -Warray-bounds patch. I haven't closely investigated the false positives yet, but one of the false negatives is this:
=== Cut ===
struct bla {
bla();
int* foo[3];
};
bla::bla()
{
foo[3] = 0;
}
=== Cut ===
this one is caught by my patch.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8268
