[LLVMbugs] [Bug 6618] New: ASTRecordLayoutBuilder crash on invalid

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 14 19:01:03 PDT 2010


           Summary: ASTRecordLayoutBuilder crash on invalid
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


template <class C> class foo {
void f() {
enum {
e = sizeof(C) };
class bar;
struct zed {
  bar g;
class baz {
  zed h;
   void X() {
  foo<baz> s;

clang -cc1 -fsyntax-only test.ii

clang/lib/AST/ASTContext.cpp:1188: const clang::ASTRecordLayout&
clang::ASTContext::getASTRecordLayout(const clang::RecordDecl*): Assertion `D
&& "Cannot get
 layout of forward declarations!"' failed.

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