<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 - clang trunk thinks 1+1 is 9223372036854775810 (converting `long double` to `size_t`)"
   href="https://bugs.llvm.org/show_bug.cgi?id=40779">40779</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang trunk thinks 1+1 is 9223372036854775810 (converting `long double` to `size_t`)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dholbert@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21493" name="attach_21493" title="testcase">attachment 21493</a> <a href="attachment.cgi?id=21493&action=edit" title="testcase">[details]</a></span>
testcase

STR:
 1. Compile and run the attached testcase program, the key part of which is
here:
<span class="quote">>  long double one = 1;
>  size_t result(one + 1); // This should equal 2.</span >


ACTUAL RESULTS, with locally-built clang version 9.0.0 (trunk 354359):
The program prints:
<span class="quote">> Failed (expected 2 and got 9223372036854775810)</span >

EXPECTED RESULTS:
The program should print:
<span class="quote">> Success (expected 2 and got 2)</span >


This is causing a startup crash in my locally-built Firefox, compiled with
locally-built Clang (from llvm trunk 354359).</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>