[cfe-dev] Obj-C Super badly broken…

Jean-Daniel Dupas devlists at shadowlab.org
Mon Apr 12 02:21:24 PDT 2010

Le 12 avr. 2010 à 10:59, Jean-Daniel Dupas a écrit :

> Hi,
> Look like recent change in super handling in Obj-C broke it in a nasty way.
> In short, when using [super classMethod] in a class derived class, 'self' does not point on the derived class in the super's method invocation, but it contains the super class instead.
> See Bug 6819 for details.

A short investigation shows that clang generate an objc_msgSend call instead of a objc_msgSendSuper call.

-- Jean-Daniel

More information about the cfe-dev mailing list