Index: tree-cfg.c
===================================================================
--- tree-cfg.c (revision 130313)
+++ tree-cfg.c (working copy)
@@ -3558,16 +3558,37 @@ verify_types_in_gimple_assign (gimple st
error ("invalid operands in pointer plus expression");
return true;
}
- if (!POINTER_TYPE_P (rhs1_type)
- || !useless_type_conversion_p (lhs_type, rhs1_type)
+
+ if (!POINTER_TYPE_P (lhs_type)
+ || !POINTER_TYPE_P (rhs1_type))
+ {
+ error ("type mismatch in pointer plus expression");
+ return true;
+ }
+
+ /* Drill down to get to the pointed-to type. */