diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-06 14:55:06 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-06 14:55:06 +0000 |
commit | fcb3f76e49122610579aff6585c27613be286f99 (patch) | |
tree | 4835a35a831281082968f68066f0ad2a45dddcec /gcc/cp/rtti.c | |
parent | bb66479ab389f6d0b9b69b25421ef7baa95fb042 (diff) | |
download | ppe42-gcc-fcb3f76e49122610579aff6585c27613be286f99.tar.gz ppe42-gcc-fcb3f76e49122610579aff6585c27613be286f99.zip |
* cp-tree.h (rvalue): New function.
* call.c (build_conditional_expr): Use it.
* init.c (build_new_1): Likewise.
* rtti.c (build_dynamic_cast_1): Likewise.
* tree.c (rvalue): New function.
* typeck.c (build_unary_op): Use it.
(build_static_cast_1): Likewise.
* g++.dg/expr/cast6.C: New test.
PR c++/9782
* init.c (build_new_1): Make sure the entire array type is
complete, not just its element types.
PR c++/9782
* g++.dg/init/new15.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103947 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index e0069388dd7..6d60d4c0359 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -555,7 +555,7 @@ build_dynamic_cast_1 (tree type, tree expr) expr = build_base_path (PLUS_EXPR, convert_from_reference (expr), binfo, 0); if (TREE_CODE (exprtype) == POINTER_TYPE) - expr = non_lvalue (expr); + expr = rvalue (expr); return expr; } } |