[llvm-bugs] [Bug 24952] New: miscompile from r248638

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Sep 27 02:53:37 PDT 2015


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

            Bug ID: 24952
           Summary: miscompile from r248638
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvm-bugs at lists.llvm.org,
                    sanjoy at playingwithpointers.com
    Classification: Unclassified

The boost example,

#include <boost/multiprecision/cpp_bin_float.hpp>
#include <boost/math/special_functions/gamma.hpp>
#include <iostream>
int main() {
   using namespace boost::multiprecision;
   std::cout << boost::math::tgamma(cpp_bin_float_100(1000)) << std::endl;
}

produce correct output

bin/clang++ -O2 -std=c++11 -isystem include cpp_bin_float_snips.cpp
./a.out
4.02387e+2564

with pre-r248638 clang and gcc 5.1.0.

>From r248638,

./a.out
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::range_error>
>'
  what():  No bits were set in the operand.

this is on Ubunto 14.04 64 bit, boost 1.57.

-- 
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/20150927/8ec52295/attachment.html>


More information about the llvm-bugs mailing list