Skip to content

Commit fa70f8b

Browse files
Update checkclass.cpp
1 parent c364e62 commit fa70f8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/checkclass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3269,6 +3269,8 @@ void CheckClass::checkOverride()
32693269
continue;
32703270
if (func.tokenDef->isExpandedMacro())
32713271
continue;
3272+
if (func.templateDef)
3273+
continue;
32723274
const Function *baseFunc = func.getOverriddenFunction();
32733275
if (baseFunc)
32743276
overrideError(baseFunc, &func);

0 commit comments

Comments
 (0)