coroutines: init struct members to NULL
gcc/cp/ChangeLog: PR c++/99617 * coroutines.cc (struct var_nest_node): Init then_cl and else_cl to NULL.
This commit is contained in:
parent
57e274408c
commit
3bcf19215d
@ -2805,7 +2805,7 @@ struct var_nest_node
|
|||||||
{
|
{
|
||||||
var_nest_node () = default;
|
var_nest_node () = default;
|
||||||
var_nest_node (tree v, tree i, var_nest_node *p, var_nest_node *n)
|
var_nest_node (tree v, tree i, var_nest_node *p, var_nest_node *n)
|
||||||
: var(v), init(i), prev(p), next(n)
|
: var(v), init(i), prev(p), next(n), then_cl (NULL), else_cl (NULL)
|
||||||
{
|
{
|
||||||
if (p)
|
if (p)
|
||||||
p->next = this;
|
p->next = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user