Commit c050422f by Richard Stallman

(convert): Handle conversion to complex type.

From-SVN: r3640
parent 0b127821
......@@ -87,6 +87,8 @@ convert (type, expr)
return fold (convert_to_pointer (type, e));
if (code == REAL_TYPE)
return fold (convert_to_real (type, e));
if (code == COMPLEX_TYPE)
return fold (convert_to_complex (type, e));
error ("conversion to non-scalar type requested");
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