diff --git a/src/shared/cplusplus/Parser.cpp b/src/shared/cplusplus/Parser.cpp
index 5bae822f350a216577aa935b95706c121ab452d9..0e21a1ae84d5d9859d13af83cd61a64f6e2da935 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))
     {