[LLVMbugs] [Bug 8770] New: Can't access property in Objective-C++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Dec 10 05:01:12 PST 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: register at ffreling.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list