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:
Martin Liska 2021-03-16 13:26:09 +01:00
parent 57e274408c
commit 3bcf19215d

View File

@ -2805,7 +2805,7 @@ struct var_nest_node
{
var_nest_node () = default;
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)
p->next = this;