[LLVMbugs] [Bug 8726] New: Assertion `D && "Cannot get layout of forward declarations!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 2 03:43:54 PST 2010


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

           Summary: Assertion `D && "Cannot get layout of forward
                    declarations!"' failed.
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Trying to compile the following with Clang built from trunk (r120702) hits an
assert:

class C;
struct S {
  const C &c1;
  int i;
  const C &c2;
};
void f(const C& c) {
  S s = {c, 42, c};
}

clang: RecordLayoutBuilder.cpp:1615: 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