re PR middle-end/81695 (internal compiler error: in size_binop_loc, at fold-const...
authorMarek Polacek <polacek@redhat.com>
Fri, 4 Aug 2017 11:28:04 +0000 (11:28 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 4 Aug 2017 11:28:04 +0000 (11:28 +0000)
commitf4f2c2ece3c309ac3d7e8a6bfd9f6cd9c6cb95a1
tree036d0f437c35140e96e4226f26fbaf9c690128ba
parent62c8a2cf17cd794241c8f978c8fcfc4682ca4315
re PR middle-end/81695 (internal compiler error: in size_binop_loc, at fold-const.c:1768)

PR middle-end/81695
* fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
perform the computation in offset_int.

* gcc.dg/pr81695.c: New test.

From-SVN: r250871
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81695.c [new file with mode: 0644]