Re: [PATCH] Fix PR79731

2017-02-28 Thread Richard Biener
On Tue, 28 Feb 2017, Richard Biener wrote: > > Bootstrap / regtest running on x86_64-unknown-linux-gnu. The following is what I committed. Bootstrapped and tested on x86_64-unknown-linux-gnu. Richard. 2017-02-28 Richard Biener PR middle-end/79731 * fold-const.c (decode_fie

[PATCH] Fix PR79731

2017-02-28 Thread Richard Biener
Bootstrap / regtest running on x86_64-unknown-linux-gnu. Richard. 2017-02-28 Richard Biener PR middle-end/79731 * fold-const.c (decode_field_reference): Reject out-of-bound accesses. * c-c++-common/torture/pr79731.c: New testcase. Index: gcc/fold-const.c ===