[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


           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 {
  static void call_method_ptr(UnFoo *f) {
    // FIXME: Possible Clang bug:
    // getCalleeDecl() returns NULL in the following case:

void call_method_ptr_inst(UnFoo* 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