https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78646
--- Comment #5 from Stefan M Freudenberger <stefan at reservoir dot com> --- This is the revised patch: - add_expr = fold_build2 (POINTER_PLUS_EXPR, TREE_TYPE (c->base_expr), + add_expr = fold_build2 (POINTER_PLUS_EXPR, c->cand_type, c->base_expr, c->stride);