https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71498
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Jul 7 12:42:43 2016 New Revision: 238095 URL: https://gcc.gnu.org/viewcvs?rev=238095&root=gcc&view=rev Log: Backported from mainline 2016-06-13 Jakub Jelinek <ja...@redhat.com> PR sanitizer/71498 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY. * c-c++-common/ubsan/bounds-13.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/ubsan/bounds-13.c Modified: branches/gcc-5-branch/gcc/c-family/ChangeLog branches/gcc-5-branch/gcc/c-family/c-gimplify.c branches/gcc-5-branch/gcc/testsuite/ChangeLog