llvm-svn: 68338
This commit is contained in:
Steve Naroff 2009-04-02 18:37:59 +00:00
parent e9cff3328f
commit d5ca2d0165
2 changed files with 14 additions and 1 deletions

View File

@ -589,7 +589,8 @@ Parser::OwningExprResult Parser::ParseCastExpression(bool isUnaryExpression,
Res = Actions.ActOnClassPropertyRefExpr(ReceiverName, PropertyName,
IdentLoc, PropertyLoc);
return move(Res);
// These can be followed by postfix-expr pieces.
return ParsePostfixExpressionSuffix(move(Res));
}
// Consume the identifier so that we can see if it is followed by a '('.
// Function designators are allowed to be undeclared (C99 6.5.1p2), so we

View File

@ -0,0 +1,12 @@
// RUN: clang -fsyntax-only -verify %s
@interface Test {}
+ (Test*)one;
- (int)two;
@end
int main ()
{
return Test.one.two;
}