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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Forgot to add the type check for delay statements.
That is this fixes the issue:
```
diff --git a/gcc/tree-ssa-phiprop.cc b/gcc/tree-ssa-phiprop.cc
index d24613d5893..c05164dd375 100644
--- a/gcc/tree-ssa-phiprop.cc
+++ b/gcc/tree-ssa-phiprop.cc
@@ -506,6 +506,8 @@ next:;
   if (phi_inserted)
     for (auto use_stmt : delayed_uses)
       {
+       if (!types_compatible_p (type, TREE_TYPE (gimple_assign_lhs
(use_stmt))))
+         continue;
        gimple_assign_set_rhs1 (use_stmt, res);
        update_stmt (use_stmt);
       }

```

Reply via email to