forked from OSchip/llvm-project
Fixed a problem using property syntax on a 'super'
used as receiver. llvm-svn: 68631
This commit is contained in:
parent
2ac33a08d5
commit
fc58ca4af6
|
@ -1449,9 +1449,11 @@ Parser::OwningExprResult Parser::ParseObjCMessageExpression() {
|
||||||
// Parse receiver
|
// Parse receiver
|
||||||
if (isTokObjCMessageIdentifierReceiver()) {
|
if (isTokObjCMessageIdentifierReceiver()) {
|
||||||
IdentifierInfo *ReceiverName = Tok.getIdentifierInfo();
|
IdentifierInfo *ReceiverName = Tok.getIdentifierInfo();
|
||||||
SourceLocation NameLoc = ConsumeToken();
|
if (ReceiverName != Ident_super || GetLookAheadToken(1).isNot(tok::period)) {
|
||||||
return ParseObjCMessageExpressionBody(LBracLoc, NameLoc, ReceiverName,
|
SourceLocation NameLoc = ConsumeToken();
|
||||||
ExprArg(Actions));
|
return ParseObjCMessageExpressionBody(LBracLoc, NameLoc, ReceiverName,
|
||||||
|
ExprArg(Actions));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OwningExprResult Res(ParseExpression());
|
OwningExprResult Res(ParseExpression());
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
// RUN: clang-cc -fsyntax-only -verify %s
|
||||||
|
|
||||||
|
@interface SStoreNodeInfo
|
||||||
|
|
||||||
|
@property(nonatomic,readonly,retain) id descriptionShort;
|
||||||
|
|
||||||
|
- (id)stringByAppendingFormat:(int)format, ... ;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@interface SStoreNodeInfo_iDisk : SStoreNodeInfo
|
||||||
|
{
|
||||||
|
@private
|
||||||
|
id _etag;
|
||||||
|
}
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation SStoreNodeInfo_iDisk
|
||||||
|
- (id) X { return [super.descriptionShort stringByAppendingFormat:1, _etag]; }
|
||||||
|
|
||||||
|
@end
|
Loading…
Reference in New Issue