<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 --- - Attached self-contained source (from range-v3 example) crashes clang++ front-end"
   href="https://llvm.org/bugs/show_bug.cgi?id=26062">26062</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Attached self-contained source (from range-v3 example) crashes clang++ front-end
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tonyelewis@hotmail.com
          </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=15576" name="attach_15576" title="self-contained source file that crashes clang++ 3.6.2">attachment 15576</a> <a href="attachment.cgi?id=15576&action=edit" title="self-contained source file that crashes clang++ 3.6.2">[details]</a></span>
self-contained source file that crashes clang++ 3.6.2

The attached self-contained source file crashes Clang 3.6.2 with the following
command:

clang++ -std=c++11 -c clang_compile_problem.ii

Following the instructions on
<a href="http://llvm.org/docs/HowToSubmitABug.html#crashing-bugs">http://llvm.org/docs/HowToSubmitABug.html#crashing-bugs</a>, I find it still
crashes if I add the options -O0 -emit-llvm so it appears to be a front-end
bug.

I have used delta and hand modification to reduce the crashing source (though I
can't guarantee that that hasn't changed the cause of the crash).

The version of Clang is:

Ubuntu clang version 3.6.2-1 (tags/RELEASE_362/final) (based on LLVM 3.6.2)
Target: x86_64-pc-linux-gnu
Thread model: posix

The OS is:

Ubuntu 15.10
Linux4.2.0-22-generic #27-Ubuntu SMP Thu Dec 17 22:57:08 UTC 2015 x86_64 x86_64
x86_64 GNU/Linux

For context, the original source file comes from (probably mis)using Eric
Niebler's range-v3 library.</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>