Skip to content

Commit 145ec93

Browse files
Update checkfunctions.cpp
1 parent 13f7e53 commit 145ec93

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/checkfunctions.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,12 @@ void CheckFunctions::checkLibraryMatchFunctions()
635635
if (!tok->scope() || !tok->scope()->isExecutable())
636636
continue;
637637

638+
// skip uninstantiated templates
639+
if (tok == tok->scope()->bodyStart && tok->scope()->function && tok->scope()->function->templateDef) {
640+
tok = tok->link();
641+
continue;
642+
}
643+
638644
if (tok->str() == "new")
639645
insideNew = true;
640646
else if (tok->str() == ";")

0 commit comments

Comments
 (0)