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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs