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

            Bug ID: 17653
           Summary: Template Objective-C++ struct error: bad receiver type
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Compiling OpenSource WebKit with trunk clang fails with errors such as:

Source/JavaScriptCore/API/ObjCCallbackFunction.mm:189:10: error: bad receiver
type 'RetainPtr'
        [m_conversionInvocation invokeWithTarget:value];
         ^~~~~~~~~~~~~~~~~~~~~~

RetainPtr is a reference counted wrapper.

Steps to reproduce:

Compile the following reduction (from Anders Carlsson)


template<typename T> struct RetainPtr {
explicit operator T*() const;
};

@interface A
- (void)b;
@end

void f(RetainPtr<A> a)
{
    [a b];
}

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