(convert): Succeed if TYPE is the main variant of the given type.
From-SVN: r1698
This commit is contained in:
parent
f28e8a6876
commit
dacaf84fda
|
@ -371,7 +371,8 @@ convert (type, expr)
|
||||||
register tree e = expr;
|
register tree e = expr;
|
||||||
register enum tree_code code = TREE_CODE (type);
|
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;
|
return expr;
|
||||||
if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK)
|
if (TREE_CODE (TREE_TYPE (expr)) == ERROR_MARK)
|
||||||
return error_mark_node;
|
return error_mark_node;
|
||||||
|
|
Loading…
Reference in New Issue