OSDN Git Service

(convert): Handle conversion to complex type.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 1993 19:42:13 +0000 (19:42 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Mar 1993 19:42:13 +0000 (19:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3640 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-convert.c

index 5526473..cfa590c 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;