On Apr 11, 2010, at 10:43 PM, Chris Lattner wrote: > Author: lattner > Date: Mon Apr 12 00:43:31 2010 > New Revision: 101017 > > URL: http://llvm.org/viewvc/llvm-project?rev=101017&view=rev > Log: > fix an invalid use of super, you can't use super like this in a block!
This, IMO, should be diagnosed as 'unimplemented' rather than an outright error. This is one place where 'super' requires an expression AST and our recent changes disallow it. - Fariborz > > > Modified: > cfe/trunk/test/CodeGenObjC/blocks.m > > Modified: cfe/trunk/test/CodeGenObjC/blocks.m > URL: > http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/blocks.m?rev=101017&r1=101016&r2=101017&view=diff > = > = > = > = > = > = > = > = > ====================================================================== > --- cfe/trunk/test/CodeGenObjC/blocks.m (original) > +++ cfe/trunk/test/CodeGenObjC/blocks.m Mon Apr 12 00:43:31 2010 > @@ -29,7 +29,7 @@ > @interface B : A @end > @implementation B > -(void) im1 { > - ^(void) { [super im0]; }(); > + ^(void) { [self im0]; }(); > } > @end > > > > _______________________________________________ > cfe-commits mailing list > cfe-commits@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits _______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits