[LLVMbugs] [Bug 1321] NEW: llvm-gcc crashes on packed bitfield in addNewBitField

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Apr 10 11:54:43 PDT 2007


           Summary: llvm-gcc crashes on packed bitfield in addNewBitField
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr


struct X {
  unsigned int e0 : 17;
  unsigned int e1 : 17;
  unsigned int e2 : 17;
  unsigned int e3 : 17;
  unsigned int e4 : 17;
  unsigned int e5 : 17;
  unsigned int e6 : 17;
  unsigned int e7 : 17;
} __attribute__((packed)) x;

Compiling with the llvm-gcc C compiler:
gcc/llvm-types.cpp:1184: void StructTypeConversionInfo::addNewBitField(unsigned 
int, unsigned int): Assertion `Size <= 64 && "Bitfield too large!"' failed.
packed17.c:10: internal compiler error: Aborted

Testcase reduced from Ada's s-pack17.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list