<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - assertion failed in SemaTemplateInstantiate.cpp:2706: Assertion `isa<LabelDecl>(D) && "declaration not instantiated in this scope"' failed"
   href="http://llvm.org/bugs/show_bug.cgi?id=16669">16669</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>assertion failed in SemaTemplateInstantiate.cpp:2706: Assertion `isa<LabelDecl>(D) && "declaration not instantiated in this scope"' failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hoytak@stat.washington.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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: 

********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>