<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 - constexpr function causes clang-cl to never stop compiling"
   href="https://bugs.llvm.org/show_bug.cgi?id=34351">34351</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>constexpr function causes clang-cl to never stop compiling
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>fenir50@web.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=19056" name="attach_19056" title="The header file, causing the problem">attachment 19056</a> <a href="attachment.cgi?id=19056&action=edit" title="The header file, causing the problem">[details]</a></span>
The header file, causing the problem

So, I've come to you with a bug, which prevents my project from beeing
compiled. I'm using Visual Studio 2015, but with the LLVM-vs2014 configuration
(clang-cl). My target is a 64bit application for Windows. I used the newest
SnapShotBuild for Windows.

I've created some constexpr-functions, which - when used - causes the compiler
to never stop compiling. Clang doesn't crash, he just never finishes. Maybe he
will finish in some years, but I dont't want to try. I will now post my code,
sadly I don't know how to format my Comment, so I will add the code as an
attachment.

You will see a constexpr function, which generates a struct, returns it and two
functions, which will take MemberFunctionPointers from this creation. The code
compiles completly normal, when you remove the "constexpr" at line 59 and 65
(the functions, which return the pointers).</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>