<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 - different std::tan() return value in Debug and Release build"
   href="https://bugs.llvm.org/show_bug.cgi?id=46376">46376</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>different std::tan() return value in Debug and Release build
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libc++
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>zsolt.garamvolgyi@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>For specific inputs std::tan() returns different values in Debug and Release.
Here's the code that demonstrates the issue (tested in Xcode 10.3 (10G8) under
macOS Mojave 10.14.6 (18G95)):


#include <cmath>

int main(int argc, const char * argv[]) {
    return std::tan (0.356189668f) == 0.372058868408203f ? 1 : 0;  // returns 1
in Debug
    //return std::tan (0.356189668f) == 0.372058898210526f ? 1 : 0;  // returns
1 in Release
}</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>