aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2020-07-27 13:54:50 -0600
committerMartin Sebor <msebor@redhat.com>2020-07-27 14:02:27 -0600
commit07bd5544a3ab3a04d1652dbcb5a09d7271a9706a (patch)
tree608a5181d87380dae4da6f9d4dea38d60ae58041 /gcc/cp/class.c
parentf9d98fa74800041b39b67fa204c3ad8b527df400 (diff)
downloadgcc-07bd5544a3ab3a04d1652dbcb5a09d7271a9706a.zip
gcc-07bd5544a3ab3a04d1652dbcb5a09d7271a9706a.tar.gz
gcc-07bd5544a3ab3a04d1652dbcb5a09d7271a9706a.tar.bz2
Diagnose just-past-the-end references for minor array bounds.
Resolves: PR tree-optimization/84079 - missing -Warray-bounds taking the address of past-the-end element of a multidimensional array gcc/ChangeLog: PR tree-optimization/84079 * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr): Only allow just-past-the-end references for the most significant array bound. gcc/testsuite/ChangeLog: PR tree-optimization/84079 * gcc.dg/Warray-bounds-62.c: New test.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions