[LLVMbugs] [Bug 5586] New: ice: Converting to packed did not help!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Nov 21 21:00:39 PST 2009


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

           Summary: ice: Converting to packed did not help!
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, jxyang at cs.utah.edu,
                    chenyang at cs.utah.edu


regehr at john-home:~/volatile/bugs/tmp243$ clang -O0 small.c
clang-cc: CGExprConstant.cpp:337:
bool<unnamed>::ConstStructBuilder::Build(clang::InitListExpr*): Assertion
`NextFieldOffsetInBytes == LayoutSizeInBytes && "Converting to packed did not
help!"' failed.
0  clang-cc 0x09045dd8
Stack dump:
0.      Program arguments:
/home/regehr/z/tmp/llvm-gcc-r89566-install/bin/../libexec/clang-cc -triple
i386-pc-linux-gnu -S -disable-free -main-file-name small.c -relocation-model
static -disable-fp-elim -unwind-tables=0 -mcpu pentium4 -O0 -fmessage-length 93
-fexceptions=0 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
/tmp/cc-b4ukDv.s -x c small.c 
1.      <eof> parser at end of file
2.      small.c:19:17: LLVM IR generation of declaration 'g'
3.      small.c:19:17: Generating code for declaration 'g'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

regehr at john-home:~/volatile/bugs/tmp243$ clang -v

clang version 1.1 (trunk 89566)
Target: i386-pc-linux-gnu
Thread model: posix

regehr at john-home:~/volatile/bugs/tmp243$ cat small.c

typedef short int int16_t;
typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
#pragma pack(push)
#pragma pack(1)
struct S0
{
  int32_t f0;
};
#pragma pack(pop)
struct S3
{
  int16_t f0;
  uint16_t f1;
  struct S0 f2;
  uint8_t f3;
};
const struct S3 g = {
  2L, 0xD296L, 0, 0xC1L
};


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list