We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8122e0e commit 662f76aCopy full SHA for 662f76a
1 file changed
lib/tokenize.cpp
@@ -4862,7 +4862,7 @@ void Tokenizer::setVarIdPass1()
4862
4863
if (decl) {
4864
if (cpp) {
4865
- for (const Token* tok3 = tok->next(); tok3->isName(); tok3 = tok3->next()) {
+ for (const Token* tok3 = tok->next(); tok3 && tok3->isName(); tok3 = tok3->next()) {
4866
addTemplateVarIdUsage(tok3->str(),
4867
mTemplateSimplifier->getUsedVariables(),
4868
variableMap.map(false),
0 commit comments