<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 crashes from simple one line code"
   href="https://bugs.llvm.org/show_bug.cgi?id=45214">45214</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashes from simple one line code
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>9.0
          </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>schopf.dan@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23237" name="attach_23237" title="source code">attachment 23237</a> <a href="attachment.cgi?id=23237&action=edit" title="source code">[details]</a></span>
source code

I have encountered a compiler crash on Arch Linux as well as on Ubuntu using
clang 9. Using c-reduce I have narrowed the crash down to this simple code:

template <a> b() template b()->b<>

Backtrace:

#0 0x00007fcdf3ad1c2b llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/usr/bin/../lib/libLLVM-9.so+0xb09c2b)
#1 0x00007fcdf3acfaf4 llvm::sys::RunSignalHandlers()
(/usr/bin/../lib/libLLVM-9.so+0xb07af4)
#2 0x00007fcdf3acfc86 (/usr/bin/../lib/libLLVM-9.so+0xb07c86)
#3 0x00007fcdf2c54d70 __restore_rt (/usr/bin/../lib/libc.so.6+0x3bd70)
#4 0x00007fcdf2574830 clang::NestedNameSpecifier::getKind() const
(/usr/bin/../lib/../lib/libclangAST.so.9+0x380830)</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>