(convert): Handle conversion to complex type.

From-SVN: r3640
This commit is contained in:
Richard Stallman 1993-03-04 19:42:13 +00:00
parent 0b1278213b
commit c050422f1e

View File

@ -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;