Uninitialized Member Variables: Fixed bug 'false positive on multi constructors'

This commit is contained in:
Daniel Marjamäki 2008-11-15 15:22:10 +00:00
parent add2283724
commit 8c9c6529b8
2 changed files with 2 additions and 1 deletions

View File

@ -388,6 +388,7 @@ void CheckClass::CheckConstructors()
var->init = false;
constructor_token = FindClassFunction( constructor_token->next, classname, classname, indentlevel );
callstack.clear();
ClassChecking_VarList_Initialize(tok1, constructor_token, varlist, classname, callstack);
}

View File

@ -64,7 +64,7 @@ private:
TEST_CASE( initvar_operator_eq ); // BUG 2190376
TEST_CASE( initvar_same_classname ); // BUG 2208157
TEST_CASE( initvar_chained_assign ); // BUG 2270433
// TODO TEST_CASE( initvar_2constructors ); // BUG 2270353
TEST_CASE( initvar_2constructors ); // BUG 2270353
}