diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-03-04 19:42:13 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-03-04 19:42:13 +0000 |
commit | 41f46376982910f9ec59634416b0ee401d3032fd (patch) | |
tree | ac7b1d0934a65ac120fd4edeb807d9a33ddd6909 /gcc/c-convert.c | |
parent | e5bc541e219cb77f2c561b8a147e99e669d0f7c7 (diff) | |
download | gcc-41f46376982910f9ec59634416b0ee401d3032fd.tar.gz |
(convert): Handle conversion to complex type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3640 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-convert.c')
-rw-r--r-- | gcc/c-convert.c | 2 |
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; |