Revert "Remove FIXME"

This reverts commit 749699c632.
This commit is contained in:
Daniel Marjamäki 2018-10-22 21:03:30 +02:00
parent 4533eb0bd6
commit 2e4f317c0b
1 changed files with 3 additions and 0 deletions

View File

@ -1235,6 +1235,9 @@ void TokenList::validateAst() 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);
}