<html>
    <head>
      <base href="http://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 --- - ret %eax "using an undefined physical register""
   href="http://llvm.org/bugs/show_bug.cgi?id=16954">16954</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ret %eax "using an undefined physical register"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>rzg@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11077" name="attach_11077" title="Reduced test case.">attachment 11077</a> <a href="attachment.cgi?id=11077&action=edit" title="Reduced test case.">[details]</a></span>
Reduced test case.

On r188867, using the attached reduced test case, Clang dies with the following
error:

*** Bad machine code: Using an undefined physical register ***
- function:    _Z18read_response_sizev
- basic block: BB#7 if.end (0x7fb7388f0010)
- instruction: RET %EAX; dbg:<unknown>:33
- operand 0:   %EAX

The command used to compile is

clang -cc1 -emit-obj -gdwarf-2 -O1 -fsanitize=address,init-order
-stack-protector 1 -x c++ main.cpp

The operating system is OS X, x86_64.</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>