[LLVMbugs] [Bug 16669] New: assertion failed in SemaTemplateInstantiate.cpp:2706: Assertion `isa<LabelDecl>(D) && "declaration not instantiated in this scope"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 20 16:10:15 PDT 2013


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

            Bug ID: 16669
           Summary: assertion failed in SemaTemplateInstantiate.cpp:2706:
                    Assertion `isa<LabelDecl>(D) && "declaration not
                    instantiated in this scope"' failed
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hoytak at stat.washington.edu
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

In file included from test_case.cpp:1:
In file included from ./solvers.hpp:1:
In file included from ./kernels/kernels.hpp:15:
In file included from ./kernels/kernel_base.hpp:7:
In file included from ./kernels/../common.hpp:4:
In file included from ./common/array_wrapper.hpp:14:
./common/debug.hpp:13:2: warning: ">>>>>>>>>>>>>>> Debug On; pass -DNDEBUG to
disable <<<<<<<<<<<<<<<<<<<<<<<<<" [-W#warnings]
#warning ">>>>>>>>>>>>>>> Debug On; pass -DNDEBUG to disable
<<<<<<<<<<<<<<<<<<<<<<<<<"
 ^
clang:
/usr/local2/src/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:2706:
llvm::PointerUnion<clang::Decl*, llvm::SmallVector<clang::Decl*, 4u>*>*
clang::LocalInstantiationScope::findInstantiationOf(const clang::Decl*):
Assertion `isa<LabelDecl>(D) && "declaration not instantiated in this scope"'
failed.
0  clang           0x0000000002508022 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  clang           0x0000000002507329
2  libpthread.so.0 0x00007fda4b1c1cb0
3  libc.so.6       0x00007fda4a411425 gsignal + 53
4  libc.so.6       0x00007fda4a414b8b abort + 379
5  libc.so.6       0x00007fda4a40a0ee
6  libc.so.6       0x00007fda4a40a192
7  clang           0x0000000000e25d5f
8  clang           0x0000000000e5d3a8
clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*,
clang::MultiLevelTemplateArgumentList const&) + 488
9  clang           0x0000000000e5dc54
clang::Sema::FindInstantiatedContext(clang::SourceLocation,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 68
10 clang           0x0000000000e5d27b
clang::Sema::FindInstantiatedDecl(clang::SourceLocation, clang::NamedDecl*,
clang::MultiLevelTemplateArgumentList const&) + 187
11 clang           0x0000000000e24306
12 clang           0x0000000000e3a793
13 clang           0x0000000000e2d89e
14 clang           0x0000000000e40083
15 clang           0x0000000000e2c68c
16 clang           0x0000000000e4c4c1
17 clang           0x0000000000e4e091
18 clang           0x0000000000e4ca15
19 clang           0x0000000000e4ed3f clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 79
20 clang           0x0000000000e63fa5
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2181
21 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
22 clang           0x0000000000e63ab8
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 920
23 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
24 clang           0x0000000000e63ad7
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 951
25 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
26 clang           0x0000000000e63ad7
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 951
27 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
28 clang           0x0000000000e63ad7
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 951
29 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
30 clang           0x0000000000e63ad7
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 951
31 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
32 clang           0x0000000000e63ad7
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 951
33 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
34 clang           0x0000000000e63ad7
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 951
35 clang           0x0000000000e63401
clang::Sema::PerformPendingInstantiations(bool) + 657
36 clang           0x0000000000b448a2 clang::Sema::ActOnEndOfTranslationUnit()
+ 466
37 clang           0x0000000000aa71f6
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 374
38 clang           0x0000000000aa078d clang::ParseAST(clang::Sema&, bool, bool)
+ 493
39 clang           0x0000000000776bda clang::FrontendAction::Execute() + 282
40 clang           0x0000000000759e50
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 352
41 clang           0x000000000073fe82
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1714
42 clang           0x0000000000738890 cc1_main(char const**, char const**, char
const*, void*) + 1264
43 clang           0x000000000071c7c3 main + 787
44 libc.so.6       0x00007fda4a3fc76d __libc_start_main + 237
45 clang           0x0000000000738231
Stack dump:
0.    Program arguments: /usr/local2/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name test_case.cpp
-mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -g -resource-dir /usr/local2/bin/../lib/clang/3.4
-I /home/hoytak/sysroot/include -internal-isystem
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1
-internal-isystem
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/x86_64-unknown-linux-gnu
-internal-isystem
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/backward
-internal-isystem
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/x86_64-unknown-linux-gnu/c++/4.8.1
-internal-isystem /usr/local/include -internal-isystem
/usr/local2/bin/../lib/clang/3.4/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O0 -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/hoytak/workspace/latticeflow/solver -ferror-limit
19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -vectorize-loops -o /tmp/test_case-5dd92c.o -x c++
test_case.cpp 
1.    <eof> parser at end of file
2.    ./tv/tv_solver.hpp:552:14: instantiating function definition
'calculate2dTV'
3.    ./tv/tv_solver.hpp:92:10: instantiating function definition
'buildFullPathFromSolvedLambda'
4.    ./tv/tv_solver.hpp:204:10: instantiating function definition
'_constructInitialRegPathsFromSolvedLattice'
5.   
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/bits/stl_queue.h:408:7:
instantiating function definition 'priority_queue'
6.   
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/bits/stl_heap.h:426:5:
instantiating function definition 'make_heap'
7.   
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/bits/stl_heap.h:304:5:
instantiating function definition '__adjust_heap'
8.   
/home/hoytak/sysroot/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../include/c++/4.8.1/bits/stl_function.h:234:7:
instantiating function definition 'operator()'
9.    ./tv/tv_solver.hpp:253:14: instantiating function definition 'operator<'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (trunk 186175)
Target: x86_64-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test_case-f51390.cpp
clang: note: diagnostic msg: /tmp/test_case-f51390.sh
clang: note: diagnostic msg: 

********************

-- 
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/20130720/6577f449/attachment.html>


More information about the llvm-bugs mailing list