[llvm-bugs] [Bug 46376] New: different std::tan() return value in Debug and Release build

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 18 02:03:35 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46376

            Bug ID: 46376
           Summary: different std::tan() return value in Debug and Release
                    build
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zsolt.garamvolgyi at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

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
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200618/626b3201/attachment.html>


More information about the llvm-bugs mailing list