<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Clang++ segfaults during template specialization"
   href="https://bugs.llvm.org/show_bug.cgi?id=37247">37247</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang++ segfaults during template specialization
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.8
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kvedder@umass.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Overview:
Compiling valid C++11 code causes clang++ to segfault during struct generaion.

Repro Steps:
Download the attached .sh and .cpp files onto an x86_64 Ubuntu 16.04 install,
with the standard apt compiler version (3.8.0-2ubuntu4
(tags/RELEASE_380/final))
Run the attached .sh script with the attached .cpp file generated by clang++
Actual Results:
clang++ segfaults during codegen.

Expected Results:
Either a compiler error or a working binary. g++ (Ubuntu
5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 is able to produce a working binary on
the same source clang++ segfaults on.

Clang Version Info:
clang version 3.8.0-2ubuntu4 (tags/RELEASE_380/final)

Target: x86_64-pc-linux-gnu

Thread model: posix

InstalledDir: /usr/bin

Hardware Info:
OS: Ubuntu 16.04 xenial

Kernel: x86_64 Linux 4.13.0-37-generic

CPU: Intel Core i7-7820HQ CPU @ 3.9GHz

Link to files (cannot attach due to file size restrictions):
<a href="https://github.com/kylevedder/bugreports/tree/master/clang/templates">https://github.com/kylevedder/bugreports/tree/master/clang/templates</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>