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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 22 11:03:28 PDT 2010


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

           Summary: Assertion ... "Declaration context must already be
                    complete!"' failed
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nomura at netapp.com
                CC: llvmbugs at cs.uiuc.edu


svnversion 104435

"delta" produced a fragment, but the assert string is identical to the one
from the original input -- hopefully this testcase is representative.

(If delta is told to maintain syntax correctness at each step, it converges
extremely slowly.)


namespace Coral
{
  template < typename objectclass > class CpuFactoryPalette;
  template < typename objectclass > class CpuFactory;
}
template < typename objectclass > class Coral::CpuFactory
{
  typedef struct CpuFactoryPalette < objectclass >::widget widgetclass;
  struct cpufactory_percpu { }
  _priorities[1];
};
namespace Coral
{
  class MdpeFactory;
  class MetaDataPullEngine;
  class Coral::MdpeFactory
  {
  private:CpuFactory < MetaDataPullEngine > _factory;
# end testcase



[cyclsvl07]$ /x/eng/build2/scratch/nomura/clang-LATEST/bin/clang -c -x c++ xx.i
clang:
/x/eng/build_scratch2/nomura/clang-llvm_100522_0000/llvm/tools/clang/lib/Sema/SemaLookup.cpp:1101:
bool clang::Sema::LookupQualifiedName(clang::LookupResult&,
clang::DeclContext*, bool): Assertion `(!isa<TagDecl>(LookupCtx) ||
LookupCtx->isDependentContext() || cast<TagDecl>(LookupCtx)->isDefinition() ||
Context.getTypeDeclType(cast<TagDecl>(LookupCtx))->getAs<TagType>()
->isBeingDefined()) && "Declaration context must already be complete!"' failed.
0  clang           0x00000000014f5c3f
1  clang           0x00000000014f66c7
2  libpthread.so.0 0x000000381100e7c0
3  libc.so.6       0x0000003810430265 gsignal + 53
4  libc.so.6       0x0000003810431d10 abort + 272
5  libc.so.6       0x00000038104296e6 __assert_fail + 246
6  clang           0x00000000007b767b
7  clang           0x000000000083c8ce
8  clang           0x0000000000861e8d
9  clang           0x0000000000851679
10 clang           0x0000000000853b71
11 clang           0x00000000008652c9
12 clang           0x00000000008763f0
13 clang           0x0000000000878992
14 clang           0x000000000087b1e2
15 clang           0x0000000000863b7a
16 clang           0x0000000000864877
17 clang           0x00000000008832a6
18 clang           0x0000000000883493
19 clang           0x00000000006e7e7d
20 clang           0x00000000006e86c5
21 clang           0x000000000070842c
22 clang           0x0000000000aa593d
23 clang           0x0000000000aa84f0
24 clang           0x0000000000aa92f6
25 clang           0x0000000000a990e5
26 clang           0x0000000000a8c779
27 clang           0x0000000000a8cd74
28 clang           0x0000000000a8dd9a
29 clang           0x0000000000aa3bf6
30 clang           0x0000000000a9f96d
31 clang           0x0000000000a8e3d5
32 clang           0x0000000000a8e91a
33 clang           0x000000000069646e
34 clang           0x00000000004408fa
35 clang           0x000000000042d170
36 clang           0x0000000000432c84 main + 2724
37 libc.so.6       0x000000381041d994 __libc_start_main + 244
38 clang           0x000000000042b329
Stack dump:
0.      Program arguments:
/x/eng/build_scratch2/nomura/clang-llvm_100522_0000/root/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name xx.i
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/x/eng/build_scratch2/nomura/clang-llvm_100522_0000/root/lib/clang/2.0
-ferror-limit 19 -fmessage-length 197 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-xBVlHa.s -x c++ xx.i 
1.      xx.i:18:53: current parser token ';'
2.      xx.i:12:1: parsing namespace 'Coral'
3.      xx.i:16:3: parsing struct/union/class body 'Coral::MdpeFactory'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

-- 
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