[LLVMbugs] [Bug 8796] New: failed assert: Duplicate empty class detected

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 15 18:01:44 PST 2010


           Summary: failed assert: Duplicate empty class detected
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Running "clang -cc1 -S foo.ii" on

struct FreeCell {
union ThingOrCell {
  FreeCell t;
  FreeCell cell;
 struct Things {
  ThingOrCell things;
 struct Arena {
   union {
     int y;
   Things t;
struct Arena x;

Fails with

Assertion failed: (std::find(Classes.begin(), Classes.end(), RD) ==
Classes.end() && "Duplicate empty class detected!"), function
AddSubobjectAtOffset, file
/Users/espindola/llvm/clang/lib/AST/RecordLayoutBuilder.cpp, line 221.

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