PR tree-optimization/86741 - ICE in -Warray-bounds indexing into an object of incompl...
authorMartin Sebor <msebor@redhat.com>
Tue, 31 Jul 2018 16:47:39 +0000 (16:47 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 31 Jul 2018 16:47:39 +0000 (10:47 -0600)
commit8e73e6140d876c6ae8e1d67bb4dcd2e47c7914ec
tree01608338e335ffb796c5c8b825b244aafb00c554
parent4de3a1e16a86d23dec7cea6e5f7f710cf5769e71
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.

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