[LLVMbugs] [Bug 10071] New: Assertion in codegen

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 2 22:24:22 PDT 2011


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

           Summary: Assertion in codegen
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: llvmbugs at cs.uiuc.edu


Consider the following testcase:

struct Foo {
  union {
    struct {
      unsigned char padding1[3];
      struct { } bar;
    };
  };
  Foo() { }
};

struct __attribute__((__aligned__((16)))) Bar {
  Foo m_subData;
};

Bar __attribute__((__aligned__((128)))) Baz[50];

We're having:

clang++ testcase.cpp 
Assertion failed: (Ty && "Invalid GetElementPtrInst indices for type!"),
function checkType, file
/Users/asl/Projects/llvm/src/include/llvm/Instructions.h, line 278.

-- 
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