mirror of git://gcc.gnu.org/git/gcc.git
* tree.c (stabilize_expr): Tweak logic.
From-SVN: r188028
This commit is contained in:
parent
a932fb8932
commit
989e6706f1
|
@ -1,5 +1,7 @@
|
|||
2012-05-30 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* tree.c (stabilize_expr): Tweak logic.
|
||||
|
||||
PR c++/53356
|
||||
* tree.c (stabilize_init): Side effects make the init unstable.
|
||||
|
||||
|
|
|
@ -3283,8 +3283,8 @@ stabilize_expr (tree exp, tree* initp)
|
|||
init_expr = NULL_TREE;
|
||||
else if (VOID_TYPE_P (TREE_TYPE (exp)))
|
||||
{
|
||||
*initp = exp;
|
||||
return void_zero_node;
|
||||
init_expr = exp;
|
||||
exp = void_zero_node;
|
||||
}
|
||||
/* There are no expressions with REFERENCE_TYPE, but there can be call
|
||||
arguments with such a type; just treat it as a pointer. */
|
||||
|
|
Loading…
Reference in New Issue