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

Nico Weber thakis at chromium.org
Thu Jun 17 13:54:26 PDT 2010


>
> 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.

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


More information about the cfe-dev mailing list