+2001-07-10 Jason Merrill <jason_merrill@redhat.com>
+
+ * semantics.c (cp_expand_stmt): Fix for null
+ current_function_return_value.
+
2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
* call.c (build_op_delete_call): Initialize fn.
(get_primary_binfo): Initialize result.
* init.c (build_java_class_ref): Initialize name.
+2001-07-09 Erik Rozendaal <dlr@acm.org>
+
* typeck.c (unary_complex_lvalue): Do not duplicate the
argument to modify, pre-, or post-increment when used as an
lvalue and when the argument has side-effects.
switch (TREE_CODE (t))
{
case CLEANUP_STMT:
- /* Don't destroy the chosen named return value. */
- if (CLEANUP_DECL (t) != current_function_return_value)
+ if (CLEANUP_DECL (t)
+ && CLEANUP_DECL (t) == current_function_return_value)
+ /* Don't destroy the chosen named return value. */;
+ else
genrtl_decl_cleanup (CLEANUP_DECL (t), CLEANUP_EXPR (t));
break;