<html>
    <head>
      <base href="https://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 --- - __make_integer_seq type crashes clang in mangling template function"
   href="https://llvm.org/bugs/show_bug.cgi?id=28519">28519</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__make_integer_seq type crashes clang in mangling template function
          </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>All
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>akotulski@fb.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>david.majnemer@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16727" name="attach_16727" title="stack trace">attachment 16727</a> <a href="attachment.cgi?id=16727&action=edit" title="stack trace">[details]</a></span>
stack trace

Calling a function that adds __make_integer_seq<...> to its mangled name causes
a crash inside mangling code. I tested on clang trunk from July 8th (last rev
is r274885). r275047 fixes another problem with __make_integer_seq but it most
likely doesn't fix mangling crash.

Stack trace in attachment.

Code:

// compile in c++14 mode
#include<utility>                                                               

template <int N>                                                                
__make_integer_seq<std::integer_sequence, int, N> make(){}                      

int main() {                                                                    
  make<5>();                                                                    
}</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>