<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:dimitry@andric.com" title="Dimitry Andric <dimitry@andric.com>"> <span class="fn">Dimitry Andric</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Assertion failed: (Idx < size() && "Template parameter index out-of-range"), function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137."
   href="https://bugs.llvm.org/show_bug.cgi?id=42015">bug 42015</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>dimitry@andric.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>clang++: error: clang frontend command failed due to signal (use -v to see invocation)
           </td>
           <td>Assertion failed: (Idx < size() && "Template parameter index out-of-range"), function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137.
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Assertion failed: (Idx < size() && "Template parameter index out-of-range"), function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137."
   href="https://bugs.llvm.org/show_bug.cgi?id=42015#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - Assertion failed: (Idx < size() && "Template parameter index out-of-range"), function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137."
   href="https://bugs.llvm.org/show_bug.cgi?id=42015">bug 42015</a>
              from <span class="vcard"><a class="email" href="mailto:dimitry@andric.com" title="Dimitry Andric <dimitry@andric.com>"> <span class="fn">Dimitry Andric</span></a>
</span></b>
        <pre>The actual problem appears to be a failed assertion, which I can reproduce from
your test case:

Assertion failed: (Idx < size() && "Template parameter index out-of-range"),
function getParam, file tools/clang/include/clang/AST/DeclTemplate.h, line 137.
Stack dump:
0.      Program arguments: /home/dim/ins/llvm-trunk-r355000/bin/clang -cc1
-triple x86_64-pc-windows-msvc19.21.27702 -emit-obj -mrelax-all
-mincremental-linker-compatible -disable-free -disable-llvm-verifier
-discard-value-names -main-file-name compactor.cc -mrelocation-model pic
-pic-level 2 -mthread-model posix -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -gcodeview
-debug-info-kind=limited -momit-leaf-frame-pointer -v -coverage-notes-file
F:/src/lib/unix/fix/doxygen/xapian-core-1.4.11/build.clang/api/compactor.gcno
-D HAVE_CONFIG_H -D NDEBUG -D WINAPI_FAMILY=100 -D _CRT_SECURE_NO_WARNINGS -D
_CRT_NONSTDC_NO_WARNINGS -fdeprecated-macro -ferror-limit 19 -fmessage-length
120 -fno-use-cxa-atexit -fms-extensions -fms-compatibility
-fms-compatibility-version=19.21.27702 -std=c++14 -fdelayed-template-parsing
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -x c++ compactor-c17504.cpp -faddrsig
1.      <eof> parser at end of file
2.      Per-file LLVM IR generation
3.      C:\Program Files (x86)\Microsoft Visual
Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\include\xlocale:781:37:
Generating code for declaration 'std::codecvt<char, char,
_Mbstatet>::do_always_noconv'
0  clang       0x0000000002839298
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  clang       0x0000000002837148 llvm::sys::RunSignalHandlers() + 248
2  clang       0x0000000002839b18
llvm::sys::PrintStackTraceOnErrorSignal(llvm::StringRef, bool) + 1240
3  libthr.so.3 0x000000080439d430 _pthread_sigmask + 1328
Abort trap

It turns out this is a duplicate of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [clang-cl] ICE instantiating partial specialization of variable template with /Zi"
   href="show_bug.cgi?id=41677">bug 41677</a>, and was fixed by
<a href="https://reviews.llvm.org/rL359809">https://reviews.llvm.org/rL359809</a>, which is also submitted for merging into
8.0.1.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [clang-cl] ICE instantiating partial specialization of variable template with /Zi"
   href="show_bug.cgi?id=41677">bug 41677</a> ***</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>