diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 970bad3a2211..2c77b818ffce 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -1874,9 +1874,6 @@ void TokenList::validateAst(bool print) const // Skip lambda assignment and/or initializer if (Token::Match(tok, "= {|^|[")) continue; - // FIXME: Workaround broken AST assignment in type aliases - if (Token::Match(tok->previous(), "%name% = %name%")) - continue; if (!tok->astOperand1() || !tok->astOperand2()) throw InternalError(tok, "Syntax Error: AST broken, binary operator '" + tok->str() + "' doesn't have two operands.", InternalError::AST); }