[cfe-dev] Proposal to simplify ObjC Type AST's
Eli Friedman
eli.friedman at gmail.com
Tue May 19 17:04:51 PDT 2009
On Tue, May 19, 2009 at 4:50 PM, Fariborz Jahanian <fjahanian at apple.com> wrote:
> I am not sure if any want want to do this. But following code is legal:
> #include <objc/objc.h>
> id pi;
> Class min()
> {
> return pi->isa;
> }
That doesn't compile on my computer ("error: ‘struct objc_object’ has
no member named ‘isa’").
In any case, we can support this sort of construct with explicit
checks in Sema::ActOnMemberReferenceExpr and
Sema::CheckIndirectionOperand.
-Eli
More information about the cfe-dev
mailing list