diff options
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 50b3a7a4ef..52caffbb7f 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -639,6 +639,8 @@ Parser::ExprResult Parser::ParseCastExpression(bool isUnaryExpression) { return ParsePostfixExpressionSuffix(Res); case tok::coloncolon: // [C++] new-expression or [C++] delete-expression + // If the next token is neither 'new' nor 'delete', the :: would have been + // parsed as a scope specifier already. if (NextToken().is(tok::kw_new)) return ParseCXXNewExpression(); else |