[LLVMbugs] [Bug 17476] New: Crashes building lld
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Oct 4 07:06:45 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17476
Bug ID: 17476
Summary: Crashes building lld
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Reduced testcase:
struct string {
string(const char *__s);
string &operator+=(const string &__str);
};
template <class ELFT> void finalizeDefaultAtomValues() {
auto startEnd = [&](const char * sym)->void {
string start("__");
start += sym;
}
;
startEnd("preinit_array");
}
void f() { finalizeDefaultAtomValues<int>(); }
$ clang -cc1 -std=c++11 Writer.ii -emit-llvm
clang: /home/espindola/llvm/llvm/tools/clang/lib/CodeGen/CGExpr.cpp:1784:
clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const
clang::DeclRefExpr*): Assertion `isa<BlockDecl>(CurCodeDecl) &&
E->refersToEnclosingLocal()' failed.
0 clang 0x0000000001da88f4 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang 0x0000000001da8b71
2 clang 0x0000000001da852e
3 libpthread.so.0 0x00000032ef80efa0
4 libc.so.6 0x00000032ef435a19 gsignal + 57
5 libc.so.6 0x00000032ef437128 abort + 328
6 libc.so.6 0x00000032ef42e986
7 libc.so.6 0x00000032ef42ea32
8 clang 0x0000000001f3c215
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(clang::DeclRefExpr const*) +
1433
9 clang 0x0000000001f37345
clang::CodeGen::CodeGenFunction::EmitLValue(clang::Expr const*) + 481
10 clang 0x0000000001f37054
clang::CodeGen::CodeGenFunction::EmitCheckedLValue(clang::Expr const*,
clang::CodeGen::CodeGenFunction::TypeCheckKind) + 278
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131004/d4943be0/attachment.html>
More information about the llvm-bugs
mailing list