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

           Summary: Parenthetical messages to super can not be compiled
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


$ cat super.m 
@interface A
{
    id isa;
}
- (void)a;
@end

@interface B : A @end
@implementation B
- (void)a
{
    [(super) a];
}
@end
$ clang -c super.m 
super.m:12:4: error: cannot compile this scalar expression yet
        [(super) a];
          ^~~~~
1 diagnostic generated.

Removing the brackets works fine.  Unfortunately, this is not possible when the
code comes from a macro, which adds the brackets.

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