re PR tree-optimization/48165 (gcc-4.6: internal compiler error: in build2_stat)
authorRichard Guenther <rguenther@suse.de>
Thu, 17 Mar 2011 13:19:01 +0000 (13:19 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 17 Mar 2011 13:19:01 +0000 (13:19 +0000)
commitf8bce518af5367b22e543127f49e8fd970c3fc5e
tree36741b7951efb09388d608d6af36baf18b06a2d1
parentbb1f792960e1dd896529286d2d2302491959d591
re PR tree-optimization/48165 (gcc-4.6: internal compiler error: in build2_stat)

2011-03-17  Richard Guenther  <rguenther@suse.de>

PR middle-end/48165
* tree-object-size.c (compute_object_offset): Properly return
the offset operand of MEM_REFs as sizetype.

* g++.dg/torture/pr48165.C: New testcase.

From-SVN: r171092
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr48165.C [new file with mode: 0644]
gcc/tree-object-size.c