2009-04-22 Richard Guenther <rguenther@suse.de>
commit65c463fdf256f2a345be5be7f1703d834746e208
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 15:41:48 +0000 (22 15:41 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 15:41:48 +0000 (22 15:41 +0000)
tree830677aad4b37fb8c1aebd51f53cf58a6b139f58
parentba99525e53848ffd9a25a0c737cbbefcb3f5d436
2009-04-22  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/39824
* tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
make sure the types are compatible.

* gcc.c-torture/compile/pr39824.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146592 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr39824.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c