[LLVMbugs] [Bug 18510] New: Crash in CGRecordLayout involving virtual bases, virtual methods, bitfields and packing
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 16 13:30:56 PST 2014
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: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140116/225a499d/attachment.html>
More information about the llvm-bugs
mailing list