[LLVMbugs] [Bug 9025] New: Crash when emitting err_member_reference_needs_call for overloaded function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 21 16:45:43 PST 2011


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

           Summary: Crash when emitting err_member_reference_needs_call
                    for overloaded function
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu


This input causes Clang to segfault:

int fun(int i);
float fun(float f);
void g() { 
  fun.x;
}

The problem is near the end of Sema::LookupMemberExpr, where BaseType ==
Context.OverloadTy but Fun is null. So, we try to output the function type in
the diagnostic, but haven't gotten a 0-arg overload out of the overload set (if
it even exists).

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