Commit 989e6706 by Jason Merrill Committed by Jason Merrill

* tree.c (stabilize_expr): Tweak logic.

From-SVN: r188028
parent a932fb89
2012-05-30 Jason Merrill <jason@redhat.com> 2012-05-30 Jason Merrill <jason@redhat.com>
* tree.c (stabilize_expr): Tweak logic.
PR c++/53356 PR c++/53356
* tree.c (stabilize_init): Side effects make the init unstable. * tree.c (stabilize_init): Side effects make the init unstable.
......
...@@ -3283,8 +3283,8 @@ stabilize_expr (tree exp, tree* initp) ...@@ -3283,8 +3283,8 @@ stabilize_expr (tree exp, tree* initp)
init_expr = NULL_TREE; init_expr = NULL_TREE;
else if (VOID_TYPE_P (TREE_TYPE (exp))) else if (VOID_TYPE_P (TREE_TYPE (exp)))
{ {
*initp = exp; init_expr = exp;
return void_zero_node; exp = void_zero_node;
} }
/* There are no expressions with REFERENCE_TYPE, but there can be call /* There are no expressions with REFERENCE_TYPE, but there can be call
arguments with such a type; just treat it as a pointer. */ arguments with such a type; just treat it as a pointer. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment