<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Wrong exception deduction for some forms of placement new"
   href="https://bugs.llvm.org/show_bug.cgi?id=38300">bug 38300</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>dblaikie@gmail.com, richard-llvm@metafoo.co.uk
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Wrong exception deduction for some forms of placement new"
   href="https://bugs.llvm.org/show_bug.cgi?id=38300#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Wrong exception deduction for some forms of placement new"
   href="https://bugs.llvm.org/show_bug.cgi?id=38300">bug 38300</a>
              from <span class="vcard"><a class="email" href="mailto:dblaikie@gmail.com" title="David Blaikie <dblaikie@gmail.com>"> <span class="fn">David Blaikie</span></a>
</span></b>
        <pre>I'm going to go out on a limb (again, Richard can correct me if I'm wrong here)
and say that Clang's behavior is correct.

The throwing behavior quoted from [expr.new]p7 has no handling/changes in
behavior for "new (nothrow)" - and all the behavior for "new (nothrow)" is
about the underlying operator new call, not the new expression. This code never
gets as far as calling 'operator new' because of that size mismatch.

Looks to me like GCC is buggy here - or at least that the spec is maybe
underspecified/unclear on this case.</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>