summaryrefslogtreecommitdiff
path: root/gcc/c-convert.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-convert.c')
-rw-r--r--gcc/c-convert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-convert.c b/gcc/c-convert.c
index 55264732b9a..cfa590cfa6c 100644
--- a/gcc/c-convert.c
+++ b/gcc/c-convert.c
@@ -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;