PR tree-optimization/92349 - ICE in -Warray-bounds of a VLA member
authorMartin Sebor <msebor@redhat.com>
Mon, 4 Nov 2019 18:15:43 +0000 (18:15 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 4 Nov 2019 18:15:43 +0000 (11:15 -0700)
commit2f967bc4b32e3348e889fc4e59c48a66c3b3b575
tree562bbd533d4e089bac0a485b58f3448ca15435ba
parent494d6c28c53d0852bb6468b1f1ca189159775fcc
PR tree-optimization/92349 - ICE in -Warray-bounds of a VLA member

gcc/testsuite/ChangeLog:

PR tree-optimization/92349
* gcc.dg/Warray-bounds-50.c: New test.

gcc/ChangeLog:

PR tree-optimization/92349
* tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
memebers have constant sizes.

From-SVN: r277786
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-50.c [new file with mode: 0644]
gcc/tree-vrp.c