Skip to content

Commit 662f76a

Browse files
committed
Fix #14432
1 parent 8122e0e commit 662f76a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4862,7 +4862,7 @@ void Tokenizer::setVarIdPass1()
48624862

48634863
if (decl) {
48644864
if (cpp) {
4865-
for (const Token* tok3 = tok->next(); tok3->isName(); tok3 = tok3->next()) {
4865+
for (const Token* tok3 = tok->next(); tok3 && tok3->isName(); tok3 = tok3->next()) {
48664866
addTemplateVarIdUsage(tok3->str(),
48674867
mTemplateSimplifier->getUsedVariables(),
48684868
variableMap.map(false),

0 commit comments

Comments
 (0)