[LLVMbugs] [Bug 21830] New: [fuzz] Assertion ... & "Declaration context must already be complete!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 10 13:16:09 PST 2014


            Bug ID: 21830
           Summary: [fuzz] Assertion ... & "Declaration context must
                    already be complete!"' failed.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sami.liedes at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13471
  --> http://llvm.org/bugs/attachment.cgi?id=13471&action=edit
test case

Fuzzing discovered that the attached test case, when given as input to

  clang -fno-crash-diagnostics -std=c++11 -xc++ -c -emit-llvm

causes this assertion failure:

ctx-must-be-complete.cpp:1:1: error: C++ requires a type specifier for all
fn1() {
clang-3.6: tools/clang/lib/Sema/SemaLookup.cpp:1595: bool
clang::Sema::LookupQualifiedName(clang::LookupResult &, clang::DeclContext *,
bool): Assertion `(!isa<TagDecl>(LookupCtx) || LookupCtx->isDependentContext()
|| cast<TagDecl>(LookupCtx)->isCompleteDefinition() ||
cast<TagDecl>(LookupCtx)->isBeingDefined()) && "Declaration context must
already be complete!"' failed.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141210/5cbe3fd9/attachment.html>

More information about the llvm-bugs mailing list