diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-10 11:59:46 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-10 11:59:46 +0000 |
commit | 15654e77b028969933c59e3f71c1dddbedda1869 (patch) | |
tree | 18819ebfa553bae0c1f828feced6ab14c1598f05 /gcc/c-convert.c | |
parent | 7f2875d37d990dc70facf8bc99dfe6db01b4a38c (diff) | |
download | gcc-15654e77b028969933c59e3f71c1dddbedda1869.tar.gz |
* c-convert.c (convert): Handle REFERENCE_TYPE like POINTER_TYPE.
* c-typeck.c (convert_for_assignment): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33058 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-convert.c')
-rw-r--r-- | gcc/c-convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-convert.c b/gcc/c-convert.c index b3b144d6a8b..8dc85509d74 100644 --- a/gcc/c-convert.c +++ b/gcc/c-convert.c @@ -88,7 +88,7 @@ convert (type, expr) #endif if (code == INTEGER_TYPE || code == ENUMERAL_TYPE) return fold (convert_to_integer (type, e)); - if (code == POINTER_TYPE) + if (code == POINTER_TYPE || code == REFERENCE_TYPE) return fold (convert_to_pointer (type, e)); if (code == REAL_TYPE) return fold (convert_to_real (type, e)); |