[LLVMbugs] [Bug 24020] New: Assertion failure on packed derived class
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 2 11:36:53 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24020
Bug ID: 24020
Summary: Assertion failure on packed derived class
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: sunil_srivastava at playstation.sony.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Following example gives Assertion failure
---------------------------------------
struct Base
{
char one;
short two;
};
struct BasePacked {
char one;
short two;
} __attribute__((packed));
struct DerivedPacked : public BasePacked { int three; };
int FuncForDerivedPacked(DerivedPacked d)
{
return d.three;
}
---------------------------------------------------
clang version 3.7.0 (trunk 241287)
Target: x86_64-unknown-linux-gnu
$clang++ -cc1 -emit-obj -triple x86_64-unknown-linux-gnu ul.cpp
clang-3.7: /llvm/tools/clang/lib/CodeGen/TargetInfo.cpp:1821: static
{anonymous}::X86_64ABIInfo::Class
{anonymous}::X86_64ABIInfo::merge({anonymous}::X86_64ABIInfo::Class,
{anonymous}::X86_64ABIInfo::Class): Assertion `(Accum != Memory && Accum !=
ComplexX87) && "Invalid accumulated classification during merge."' 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/20150702/f409e557/attachment.html>
More information about the llvm-bugs
mailing list