(convert): Handle conversion to complex type.
authorRichard Stallman <rms@gnu.org>
Thu, 4 Mar 1993 19:42:13 +0000 (19:42 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 4 Mar 1993 19:42:13 +0000 (19:42 +0000)
From-SVN: r3640

gcc/c-convert.c

index 55264732b9a00b6c996f419c7ab745d040d79166..cfa590cfa6c26334462ddd192a3ef2d34ecc77ec 100644 (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;