From 1a1b841cdb2360d88b4f9f0677937c3eea8cf245 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Tue, 28 Apr 2009 19:01:44 +0200 Subject: [PATCH] Fixed parsing of ambiguous name ids. --- src/shared/cplusplus/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp index 5bae822f350..0e21a1ae84d 100644 --- a/src/shared/cplusplus/Parser.cpp +++ b/src/shared/cplusplus/Parser.cpp @@ -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)) { -- GitLab