[cfe-commits] r101017 - /cfe/trunk/test/CodeGenObjC/blocks.m
Chris Lattner
clattner at apple.com
Mon Apr 12 09:57:24 PDT 2010
Super in a block does apparently work. Fixing.
On Apr 12, 2010, at 9:28 AM, Chris Lattner wrote:
> On Apr 12, 2010, at 9:07 AM, Fariborz Jahanian wrote:
>> 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.
>
> This isn't something we are capable of representing in the AST, and I don't think we want users to be exposed to this. Can you think of a use case where it is useful?
>
> -Chris
More information about the cfe-commits
mailing list