Skip to content

Commit a426d91

Browse files
Update astutils.cpp
1 parent f6fff71 commit a426d91

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/astutils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,8 @@ bool exprDependsOnThis(const Token* expr, bool onVar, nonneg int depth)
11591159
}
11601160
if (expr->isOperatorKeyword() && !Token::simpleMatch(expr->next()->astParent(), "."))
11611161
return true;
1162+
if (expr->variable() && expr->variable()->isArgument() && !expr->variable()->type() && expr->variable()->scope()->function && expr->variable()->scope()->function->templateDef)
1163+
return true;
11621164
}
11631165
if (onVar && expr->variable()) {
11641166
const Variable* var = expr->variable();

0 commit comments

Comments
 (0)