<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 --- - mregparm=3 causes 'ran out of registers during register allocation'"
   href="https://llvm.org/bugs/show_bug.cgi?id=27176">27176</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>mregparm=3 causes 'ran out of registers during register allocation'
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>js@alien8.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, 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=16146" name="attach_16146" title="Preprocessed source that triggers the error">attachment 16146</a> <a href="attachment.cgi?id=16146&action=edit" title="Preprocessed source that triggers the error">[details]</a></span>
Preprocessed source that triggers the error

With the attached source the command below triggers a fatal error in clang (ran
out of registers during register allocation). This was reproduced using clang
3.7 from Fedora 23 and clang 3.8 (Fedora 23 x86_64) from
<a href="http://llvm.org/releases/download.html">http://llvm.org/releases/download.html</a>

% clang++ -mregparm=3 -m32 -std=c++11 -O1 -c crash.cpp

fatal error: error in backend: ran out of registers during register allocation
clang-3.8: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.8.0 (tags/RELEASE_380/final)
Target: i386-unknown-linux-gnu
Thread model: posix
InstalledDir: /tmp/clang+llvm-3.8.0-x86_64-fedora23/bin
clang-3.8: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.8: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.8: note: diagnostic msg: /tmp/crash-10f03c.cpp
clang-3.8: note: diagnostic msg: /tmp/crash-10f03c.sh
clang-3.8: note: diagnostic msg:</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>