Commit dacaf84f by Richard Stallman

(convert): Succeed if TYPE is the main variant of the given type.

From-SVN: r1698
parent f28e8a68
......@@ -371,7 +371,8 @@ convert (type, expr)
register tree e = expr;
register enum tree_code code = TREE_CODE (type);
if (type == TREE_TYPE (expr) || TREE_CODE (expr) == ERROR_MARK)
if (type == TYPE_MAIN_VARIANT (TREE_TYPE (expr))
|| TREE_CODE (expr) == ERROR_MARK)
return expr;
if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK)
return error_mark_node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment