diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-16 19:45:32 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-08-16 19:45:32 +0000 |
| commit | 16d63a727eb0930137c41f98901f44dbdd530b36 (patch) | |
| tree | 05f7275ed418a943d3793bd49f67da08213c0828 /clang/lib/Parse/ParseExpr.cpp | |
| parent | 37779ade441f6a52a4d15cea6bbff1e74c268839 (diff) | |
| download | bcm5719-llvm-16d63a727eb0930137c41f98901f44dbdd530b36.tar.gz bcm5719-llvm-16d63a727eb0930137c41f98901f44dbdd530b36.zip | |
C++ casts, (static_cast. dynamic_cast, etc.) can have postfix-expression pieces.
llvm-svn: 54850
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
| -rw-r--r-- | clang/lib/Parse/ParseExpr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp index c8856198fd2..4b45cb73f61 100644 --- a/clang/lib/Parse/ParseExpr.cpp +++ b/clang/lib/Parse/ParseExpr.cpp @@ -538,7 +538,9 @@ Parser::ExprResult Parser::ParseCastExpression(bool isUnaryExpression) { case tok::kw_dynamic_cast: case tok::kw_reinterpret_cast: case tok::kw_static_cast: - return ParseCXXCasts(); + Res = ParseCXXCasts(); + // These can be followed by postfix-expr pieces. + return ParsePostfixExpressionSuffix(Res); case tok::kw_this: Res = ParseCXXThis(); // This can be followed by postfix-expr pieces. |

