PR tree-optimization/82596 - missing -Warray-bounds on an out-of-bounds
authorMartin Sebor <msebor@redhat.com>
Thu, 19 Oct 2017 16:03:07 +0000 (16:03 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 19 Oct 2017 16:03:07 +0000 (10:03 -0600)
commitf5ba8fd1087285a379cf25d549574330abdef6f0
tree7c13139d786762d97da1313ca8b4fd19a3385e7e
parent9e878cf1bae7eba3a097dbb6b04d0bbca5bdb0e4
PR tree-optimization/82596 - missing -Warray-bounds on an out-of-bounds

PR tree-optimization/82596 - missing -Warray-bounds on an out-of-bounds
  index into string literal

gcc/ChangeLog:
* tree.c (array_at_struct_end_p): Handle STRING_CST.

gcc/testsuite/ChangeLog:
* gcc/testsuite/gcc.dg/pr82596.c: New test.

From-SVN: r253902
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr82596.c [new file with mode: 0644]
gcc/tree.c