http://llvm.org/bugs/show_bug.cgi?id=18510

            Bug ID: 18510
           Summary: Crash in CGRecordLayout involving virtual bases,
                    virtual methods, bitfields and packing
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ cat different.cpp
  struct ClassName0 {
    char : 3;
    virtual void ClassName0Method() {}
  };
  struct ClassName7 : public ClassName0 {};
  #pragma pack(push, 2)
  struct ClassName9 : public ClassName7, public virtual ClassName0 {};
  #pragma pack(pop)
  ClassName9 x;

 $ ~/llvm/build/bin/clang++ -cc1 -x c++ different.cpp -emit-llvm -S -o -
  clang++: ~/llvm/src/tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp:801:
  bool <anonymous
  namespace>::CGRecordLayoutBuilder::ComputeNonVirtualBaseType(const
  clang::CXXRecordDecl *): Assertion `!Packed && "cannot layout even as
  packed struct"' failed.

-- 
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

Reply via email to