public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-7712] coroutines: init struct members to NULL
@ 2021-03-18  9:43 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2021-03-18  9:43 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3bcf19215d88e6ec33d283352c52005f02dbc784

commit r11-7712-g3bcf19215d88e6ec33d283352c52005f02dbc784
Author: Martin Liska <mliska@suse.cz>
Date:   Tue Mar 16 13:26:09 2021 +0100

    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.

Diff:
---
 gcc/cp/coroutines.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/coroutines.cc b/gcc/cp/coroutines.cc
index 51984efe2fd..dbd703a67cc 100644
--- a/gcc/cp/coroutines.cc
+++ b/gcc/cp/coroutines.cc
@@ -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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-18  9:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18  9:43 [gcc r11-7712] coroutines: init struct members to NULL Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).