[LLVMbugs] [Bug 12815] New: Error recovery can trigger Assertion `D && "Cannot get layout of forward declarations!"'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun May 13 21:31:24 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12815
Bug #: 12815
Summary: Error recovery can trigger Assertion `D && "Cannot get
layout of forward declarations!"'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hfinkel at anl.gov
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8547
--> http://llvm.org/bugs/attachment.cgi?id=8547
reduced test case (provided by Craig Schroeder)
Running clang trunk on:
typedef union{union b u;} A __attribute__ ((__transparent_union__));
results in:
t10.c:1:23: error: field has incomplete type 'union b'
typedef union{union b u;} A __attribute__ ((__transparent_union__));
^
t10.c:1:21: note: forward declaration of 'union b'
typedef union{union b u;} A __attribute__ ((__transparent_union__));
^
clang:
/src/llvm-trunk-writable/tools/clang/lib/AST/RecordLayoutBuilder.cpp:2385:
const clang::ASTRecordLayout& clang::ASTContext::getASTRecordLayout(const
clang::RecordDecl*) const: 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