https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68117

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |6.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Does

Index: gcc/tree-scalar-evolution.c
===================================================================
--- gcc/tree-scalar-evolution.c (revision 229481)
+++ gcc/tree-scalar-evolution.c (working copy)
@@ -1849,8 +1849,7 @@ interpret_rhs_expr (struct loop *loop, g
       chrec2 = instantiate_parameters (loop, chrec2);

       chrec2 = fold_build2 (LSHIFT_EXPR, type,
-                           build_int_cst (TREE_TYPE (rhs1), 1),
-                           chrec2);
+                           build_int_cst (type, 1), chrec2);
       res = chrec_fold_multiply (type, chrec1, chrec2);
       break;


fix it?

Reply via email to