diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 2fa24b503..27f56adfd 100755 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8362,7 +8362,7 @@ const Token * Tokenizer::findGarbageCode() const return tok; if (Token::Match(tok, ";|(|[ %comp%")) return tok; - if (Token::Match(tok, "%cop%|= ]") && tok->str() != "&") + if (Token::Match(tok, "%cop%|= ]") && !(isCPP() && Token::Match(tok->previous(), "[|, &|= ]"))) return tok; }