<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 --- - Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"),"
   href="https://llvm.org/bugs/show_bug.cgi?id=25668">25668</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"),
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>amdmi3@amdmi3.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>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=15361" name="attach_15361" title="Compressed source">attachment 15361</a> <a href="attachment.cgi?id=15361&action=edit" title="Compressed source">[details]</a></span>
Compressed source

Clang 3.7.0 from FreeBSD-current base system crashes on my code:

---
FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906
Target: x86_64-unknown-freebsd11.0
Thread model: posix
---
Assertion failed: (Loc.isValid() && "point of instantiation must be valid!"),
function setPointOfInstantiation, file
/usr/src/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/include/clang/AST/DeclTemplate.h,
line 1606.
CC: error: unable to execute command: Abort trap
CC: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.7.0 (tags/RELEASE_370/final 246257) 20150906
Target: x86_64-unknown-freebsd11.0
Thread model: posix
CC: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://bugs.freebsd.org/submit/">https://bugs.freebsd.org/submit/</a> and include the crash backtrace, preprocessed
source, and associated run script.
CC: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
CC: note: diagnostic msg: /tmp/coins-a35b73.cpp
CC: note: diagnostic msg: /tmp/coins-a35b73.sh
CC: note: diagnostic msg: 

********************
*** Error code 254

Stop.
make[2]: stopped in /home/amdmi3/projects/software/hoverboard-sdl/build
*** Error code 1

Stop.
make[1]: stopped in /home/amdmi3/projects/software/hoverboard-sdl/build
*** Error code 1

Stop.
make: stopped in /home/amdmi3/projects/software/hoverboard-sdl/build
---

Complete source and run script attached.</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>