[LLVMbugs] [Bug 18430] New: Assertion `!Packed && "cannot layout even as packed struct"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 9 10:40:00 PST 2014


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

            Bug ID: 18430
           Summary: Assertion `!Packed && "cannot layout even as packed
                    struct"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: katya_romanova at playstation.sony.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following testcase causes an assertion:`!Packed && "cannot layout even as
packed struct"' failed. No additional compilation flags are needed.
It is a regression that was introduced in r169489.
http://permalink.gmane.org/gmane.comp.compilers.clang.scm/62636

===================
struct S477X3 {};
struct S477X6 { virtual void vf1(); };
struct S477X7 : virtual S477X3 {};
struct S477X5 : S477X6 , virtual S477X7 {};
struct S477X2 : S477X5 {
  char fld0;
  long long fld1:48;
  virtual void vf1();
};
void S477X2 ::vf1(){}
=====================

Katya.

-- 
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/20140109/91ecb5a7/attachment.html>


More information about the llvm-bugs mailing list