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

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


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

Reply via email to