[LLVMbugs] [Bug 8864] New: DeclRefExpr assertion due to friend functions?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Dec 26 20:35:16 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8864
Summary: DeclRefExpr assertion due to friend functions?
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu
This testcase causes a crash in clang IRGen:
struct Foo {
friend bool TryFoo(Foo *f) { return TryFoo(0, f); }
friend bool TryFoo(int, Foo *f);
};
bool TryFoo(Foo *f);
int main(void) {
Foo f;
TryFoo(&f);
}
clang: CGExpr.cpp:1164: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*):
Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed.
Aborted
--
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