http://llvm.org/bugs/show_bug.cgi?id=8770

           Summary: Can't access property in Objective-C++
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


In Objective-C++, I can't directly access a property to modify it.
In a Obj-C object foo, with the property rect (which is a NSRect), I can't do:

foo.rect.origin.x = 10;

I need to do this:

NSRect rect = foo.rect;
rect.origin.x = 10;


It used to work with Clang 2.0, but this is not the case anymore with Clang 2.9
(it works fine with GCC).

I attached a file to exhibit the issue.

Try to compile it with:

$ clang++ -c clang-error.mm

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to