https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78646
--- Comment #8 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Author: wschmidt Date: Mon Dec 5 21:48:27 2016 New Revision: 243272 URL: https://gcc.gnu.org/viewcvs?rev=243272&root=gcc&view=rev Log: 2016-12-05 Bill Schmidt <wschm...@linux.vnet.ibm.com> Stefan Freudenberger <ste...@reservoir.com> PR tree-optimization/78646 * gimple-ssa-strength-reduction.c (replace_ref): The pointer addition used for the memory base expression should have the type of the candidate. Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-strength-reduction.c