------- Comment #12 from matt at use dot net 2010-03-06 01:31 ------- Changing contents[size] to contents[size + 10] or to contents[size+10000] is still not triggering the array-bounds warning in any of the compilers I tested (previously mentioned). In my real code, it was an OB1 bug, so that's what I would have like to have been detected.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43270