[LLVMbugs] [Bug 10804] New: getCalleeDecl() returns NULL in edge case.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 29 14:30:22 PDT 2011


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

           Summary: getCalleeDecl() returns NULL in edge case.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: delesley at google.com
                CC: llvmbugs at cs.uiuc.edu


getCalleeDecl() returns NULL in a function call to a method pointer, if the
method pointer is passed as a template parameter.  For example:

template<void (UnFoo::*methptr)()>
class MCaller {
public:
  static void call_method_ptr(UnFoo *f) {
    // FIXME: Possible Clang bug:
    // getCalleeDecl() returns NULL in the following case:
    (f->*methptr)();
  }
};

void call_method_ptr_inst(UnFoo* f) {
  MCaller<&UnFoo::foo>::call_method_ptr(f);
}

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