mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 11:19:29 +08:00
(convert): Handle conversion to complex type.
From-SVN: r3640
This commit is contained in:
parent
0b1278213b
commit
c050422f1e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user