PR tree-optimization/86741 - ICE in -Warray-bounds indexing into an object of incompl...
commitb28cf1b0833df0850bb862aaf093fafb7babe400
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 16:47:39 +0000 (31 16:47 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2018 16:47:39 +0000 (31 16:47 +0000)
tree01608338e335ffb796c5c8b825b244aafb00c554
parentf7db343b52f39ebda0684eb178a56b107a653a0e
PR tree-optimization/86741 - ICE in -Warray-bounds indexing into an object of incomplete type

gcc/ChangeLog:

PR tree-optimization/86741
* tree-vrp.c (vrp_prop::check_mem_ref): Avoid incomplete types.

gcc/testsuite/ChangeLog:

PR tree-optimization/86741
* gcc.dg/Warray-bounds-33.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263166 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-33.c [new file with mode: 0644]
gcc/tree-vrp.c