Skip to content

Commit 8479457

Browse files
Update token.cpp
1 parent cb9f2a2 commit 8479457

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/token.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,7 @@ std::pair<const Token*, const Token*> Token::typeDecl(const Token* tok, bool poi
24332433
varTok = varTok->next();
24342434
while (Token::Match(varTok, "%name% ::"))
24352435
varTok = varTok->tokAt(2);
2436+
assert(varTok != tok);
24362437
std::pair<const Token*, const Token*> r = typeDecl(varTok);
24372438
if (r.first)
24382439
return r;

0 commit comments

Comments
 (0)