[LLVMbugs] [Bug 21089] New: Itanium ABI: CodeGen crash during initialization of global variable
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Sep 27 18:28:02 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=21089
Bug ID: 21089
Summary: Itanium ABI: CodeGen crash during initialization of
global variable
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
consider:
$ cat ~/t.cpp
struct A {
bool : 1;
int A::*x;
bool y;
A();
};
struct B : A {
virtual void f();
};
B b;
$ ~/llvm/Debug+Asserts/bin/clang -cc1 -x c++ -triple x86_64-pc-linux t.cpp -S
-o -
clang: ~/llvm/src/lib/IR/Constants.cpp:956:
llvm::ConstantStruct::ConstantStruct(llvm::StructType*,
llvm::ArrayRef<llvm::Constant*>): Assertion `(T->isOpaque() || V[i]->getType()
== T->getElementType(i)) && "Initializer for struct element doesn't match
struct element type!"' failed.
0 clang 0x00000000021aa8db llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 clang 0x00000000021aab58
2 clang 0x00000000021aa457
3 libpthread.so.0 0x00007f2ff167e340
4 libc.so.6 0x00007f2ff0abbbb9 gsignal + 57
5 libc.so.6 0x00007f2ff0abefc8 abort + 328
6 libc.so.6 0x00007f2ff0ab4a76
7 libc.so.6 0x00007f2ff0ab4b22
8 clang 0x0000000001d24b38
llvm::ConstantStruct::ConstantStruct(llvm::StructType*,
llvm::ArrayRef<llvm::Constant*>) + 330
9 clang 0x0000000001d33f7c
10 clang 0x0000000001d31d0f
11 clang 0x0000000001d2f275
12 clang 0x0000000001d24d38
llvm::ConstantStruct::get(llvm::StructType*, llvm::ArrayRef<llvm::Constant*>) +
434
13 clang 0x0000000002702c1a
14 clang 0x0000000002702ce9
15 clang 0x0000000002702892
16 clang 0x00000000027030a2
clang::CodeGen::CodeGenModule::EmitNullConstant(clang::QualType) + 544
17 clang 0x000000000274f34f
clang::CodeGen::CodeGenModule::EmitGlobalVarDefinition(clang::VarDecl const*) +
513
18 clang 0x000000000274dcfb
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl,
llvm::GlobalValue*) + 531
19 clang 0x000000000274d5c0
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 748
20 clang 0x00000000027542da
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 436
21 clang 0x00000000026d166d
22 clang 0x00000000026bdb7a
23 clang 0x0000000003061c00 clang::ParseAST(clang::Sema&, bool, bool)
+ 550
24 clang 0x000000000238f8d2 clang::ASTFrontendAction::ExecuteAction()
+ 322
25 clang 0x00000000026c032d clang::CodeGenAction::ExecuteAction() +
1467
26 clang 0x000000000238f3ad clang::FrontendAction::Execute() + 139
27 clang 0x000000000235a470
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 770
28 clang 0x000000000249855b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 993
29 clang 0x000000000110858e cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 770
30 clang 0x0000000001101534
31 clang 0x0000000001101ae0 main + 1015
32 libc.so.6 0x00007f2ff0aa6ec5 __libc_start_main + 245
33 clang 0x00000000010fe789
Stack dump:
0. Program arguments: ~/llvm/Debug+Asserts/bin/clang -cc1 -x c++ -triple
x86_64-pc-linux t.cpp -S -o -
--
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/20140928/8fcc289c/attachment.html>
More information about the llvm-bugs
mailing list