http://llvm.org/bugs/show_bug.cgi?id=16459
Bug ID: 16459
Summary: [-cxx-abi microsoft] Assert In Codegen on Simple
Layout
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Blocks: 12477
Classification: Unclassified
When compiling the following code I get an assertion trip in clang:
struct B {
int a;
B() : a(0xf000000B) {}
};
struct A : virtual B {
int a;
double b;
int c;
A() : a(0xf000000A), c(0xf000000A) {}
};
int main() {
A a;
}
Using the following command line:
$ (compiler32 && clang -cc1 -cxx-abi microsoft -O2 -triple=i686-pc-win32
-fno-rtti -emit-llvm testcxx.cpp)
Assertion failed: TypeSizeInBits == getDataLayout().getTypeAllocSizeInBits(Ty)
&& "Type size mismatch!", file
..\tools\clang\lib\CodeGen\CGRecordLayoutBuilder.cpp, line 1008
--
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