<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 --- - -fno-exceptions behavior does not match GCC (or, -fcheck-new is not implemented)"
   href="http://llvm.org/bugs/show_bug.cgi?id=16557">16557</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-fno-exceptions behavior does not match GCC (or, -fcheck-new is not implemented)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>eric@vangyzen.net
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, 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=10824" name="attach_10824" title="Test case">attachment 10824</a> <a href="attachment.cgi?id=10824&action=edit" title="Test case">[details]</a></span>
Test case

The attached test case, when compiled with "gcc -fno-exceptions -fcheck-new"
prints nothing and exits with a zero status.  When compiled with llvm/clang 3.3
and ToT (with the same arguments), it segfaults in the member initializer.

Ideally, when using -fno-exceptions, clang would emit code to check the return
value of "new" before calling the constructor, regardless of that operator's
exception specification.</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>