Fixed #2400 (Tests crashing in Windows)
This commit is contained in:
parent
e459ed1de3
commit
63ad1fbe69
|
@ -1180,7 +1180,7 @@ void Tokenizer::simplifyTypedef()
|
|||
if (func->previous()->str() == "::")
|
||||
{
|
||||
// check for available and matching class name
|
||||
if (!spaceInfo.empty() &&
|
||||
if (!spaceInfo.empty() && classLevel < spaceInfo.size() &&
|
||||
func->strAt(-2) == spaceInfo[classLevel].className)
|
||||
{
|
||||
memberScope = 0;
|
||||
|
|
Loading…
Reference in New Issue