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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to