Commit 1a1b841c authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed parsing of ambiguous name ids.

parent 3b917fde
......@@ -2873,6 +2873,10 @@ bool Parser::parseNameId(NameAST *&name)
return false;
if (LA() == T_IDENTIFIER ||
LA() == T_STATIC_CAST ||
LA() == T_DYNAMIC_CAST ||
LA() == T_REINTERPRET_CAST ||
LA() == T_CONST_CAST ||
tok().isLiteral() ||
(tok().isOperator() && LA() != T_LPAREN && LA() != T_LBRACKET))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment