[LLVMbugs] [Bug 16459] New: [-cxx-abi microsoft] Assert In Codegen on Simple Layout

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 25 18:11:34 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: whunt at google.com
                CC: llvmbugs at cs.uiuc.edu, reid.kleckner at gmail.com,
                    timurrrr at google.com
            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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130626/fc416b0e/attachment.html>


More information about the llvm-bugs mailing list