[LLVMbugs] [Bug 4981] New: [Sema] invalid use of '__builtin_offsetof' crashes clang-cc

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Sep 14 17:34:22 PDT 2009


           Summary: [Sema] invalid use of '__builtin_offsetof' crashes
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kremenek at apple.com
                CC: llvmbugs at cs.uiuc.edu

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() ||
->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.

More information about the llvm-bugs mailing list