[LLVMbugs] [Bug 18436] New: [-cxx-abi microsoft] Type size mismatch! assertion failure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 9 21:01:19 PST 2014


            Bug ID: 18436
           Summary: [-cxx-abi microsoft] Type size mismatch! assertion
           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

struct A {};
struct B : virtual A {};
struct __declspec(align(16)) C : virtual B {};
struct D : virtual B, A {};
struct E : virtual B, D, virtual C, A {};
struct F : virtual E, C, virtual A {};
struct G : virtual F, virtual C, virtual A {};
struct H : virtual B, virtual F, A {};
struct I : virtual C, A {};
struct J : virtual D, virtual I, virtual C, A {};
struct K : virtual D, virtual C, virtual A {};
#pragma pack(push, 2)
struct L : F,
           virtual I,  
           virtual B,
           virtual K,
           virtual E,
           virtual C,  
           virtual A {};
#pragma pack(pop)
struct M : virtual L,
           virtual G,
           virtual K,
           virtual J,
           virtual H,
           virtual I,
           virtual D,
           virtual B,
           virtual A {};
M x;

compile with:
clang++ -cc1 -cxx-abi microsoft -triple i386-pc-win32 different.cpp -fno-rtti
-emit-llvm -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/20140110/8ab9d487/attachment.html>

More information about the llvm-bugs mailing list