re PR tree-optimization/71239 (ICE in operand_equal_p (fold-const.c:2769))
authorMartin Liska <mliska@suse.cz>
Wed, 25 May 2016 09:10:16 +0000 (11:10 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 25 May 2016 09:10:16 +0000 (09:10 +0000)
commit6aa1abe5f29491a70fda964f13427a82fd65df95
tree3cedd4ace7a4559e46d2ca798869238026482aac
parent6ca8e33c66be2e2ce42f2bc211f6589db37e3c7d
re PR tree-optimization/71239 (ICE in operand_equal_p (fold-const.c:2769))

Fix PR tree-optimization/71239.

* g++.dg/pr71239.C: New test.
PR tree-optimization/71239
* tree.c (array_at_struct_end_p): Do not call operand_equal_p
if DECL_SIZE is NULL.

From-SVN: r236696
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/tree.c