https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99617
Bug ID: 99617
Summary: gcc/cp/coroutines.cc:2807: member variables not
initialised in constructor ?
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
cppcheck says:
trunk.git/gcc/cp/coroutines.cc:2807:3: warning: Member variable
'var_nest_node::else_cl' is not initialized in the constructor.
[uninitMemberVar]
trunk.git/gcc/cp/coroutines.cc:2807:3: warning: Member variable
'var_nest_node::then_cl' is not initialized in the constructor.
[uninitMemberVar]
Source code is
var_nest_node (tree v, tree i, var_nest_node *p, var_nest_node *n)
: var(v), init(i), prev(p), next(n)
{
if (p)
p->next = this;
if (n)
n->prev = this;
}
Maybe NULL would be a good first initialisation ?