diff --git a/lib/checkother.cpp b/lib/checkother.cpp index dcf509484..ef20bc3a2 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -2136,7 +2136,7 @@ void CheckOther::checkDuplicateExpression() if (assignment && warningEnabled) selfAssignmentError(tok, tok->astOperand1()->expressionString()); else if (styleEnabled) { - if (mTokenizer->isCPP() && mSettings->standards.cpp==Standards::CPP11 && tok->str() == "==") { + if (mTokenizer->isCPP() && mSettings->standards.cpp >= Standards::CPP11 && tok->str() == "==") { const Token* parent = tok->astParent(); while (parent && parent->astParent()) { parent = parent->astParent();