[cfe-dev] Patch: Add support for &@selector()

Fariborz Jahanian fjahanian at apple.com
Thu Jun 17 14:02:09 PDT 2010


On Jun 17, 2010, at 1:54 PM, Nico Weber wrote:

> the attached patch might fix PR7390.
>
> Random trivia: GCC happily compiles `SEL a; @selector(foo) = a;`.
>
> Fariborz, I saw that you just committed http://llvm.org/viewvc/llvm-project?view=rev&revision=106235 
>  for the bug. With your patch, clang now treats @selectors() as  
> lvalues and compiles `SEL a; @selector(foo) = a;` without complaint.  
> I think that's wrong.

Sorry, our patches crossed path. I will take a look at this regression.

- Fariborz

>
> Nico

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100617/45d6127e/attachment.html>


More information about the cfe-dev mailing list