[LLVMbugs] [Bug 17653] New: Template Objective-C++ struct error: bad receiver type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 22 08:35:57 PDT 2013


            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: unassignedclangbugs at nondot.org
          Reporter: dfarler at apple.com
                CC: llvmbugs at cs.uiuc.edu
    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;

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

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131022/7e6234de/attachment.html>

More information about the llvm-bugs mailing list