[cfe-dev] -rewrite-objc and protocol

jahanian fjahanian at apple.com
Tue Oct 5 09:15:27 PDT 2010


On Oct 4, 2010, at 12:06 AM, Seo Sanghyeon wrote:

> Following Objective C program:
> 
> @class C;
> @protocol P
> @end
> @interface I
> - (C <P> *) m;
> @end
> @implementation I
> - (C <P> *) m;
> {
>  return 0;
> }
> @end
> 
> gets rewritten as:
> 
> static C<P> * _I_I_m(I * self, SEL _cmd) {
>  return 0;
> }
> 
> which seems clearly wrong. Protocols are not templates.

Yes. Please file a bug report.

- fariborz

> 
> -- 
> Seo Sanghyeon
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list