http://llvm.org/bugs/show_bug.cgi?id=10650
Summary: assertion in EmitCallExprLValue
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
This is the return of bug 10592. The new testcase is:
struct Helper {
unsigned long id() { return 0; }
};
void test(Helper *obj) {
int i = static_cast<const unsigned long&>(obj->id());
}
which triggers this assertion in codegen:
nlewycky@ducttape:~/local/delta-2006.08.03$ clang -cc1 -emit-llvm-only -x c++
-w z.c
clang: CGExpr.cpp:2296: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitCallExprLValue(const clang::CallExpr*):
Assertion `E->getCallReturnType()->isReferenceType() && "Can't have a scalar
return unless the return type is a " "reference type!"' failed.
--
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