http://llvm.org/bugs/show_bug.cgi?id=4981
Summary: [Sema] invalid use of '__builtin_offsetof' crashes
clang-cc
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The following 3 line file crashes clang-cc:
$ cat t.c
void foo() {
int c = __builtin_offsetof(struct p, x);
}
$ clang-cc t.c
Assertion failed: ((!isa<TagDecl>(LookupCtx) || LookupCtx->isDependentContext()
|| cast<TagDecl>(LookupCtx)->isDefinition() ||
Context.getTypeDeclType(cast<TagDecl>(LookupCtx))->getAs<TagType>()
->isBeingDefined()) && "Declaration context must already be complete!"),
function LookupQualifiedName, file
/Users/kremenek/llvm/tools/clang/lib/Sema/SemaLookup.cpp, line 1026.
0 clang-cc 0x00dd7be8 PrintStackTrace(void*) + 40
...
--
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