-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
miscompile from r248638 #25326
Comments
assigned to @sanjoy |
I think this is a glitch with how isIdenticalTo is used in Can you check if clang built with this patch below fixes the issue? diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
|
Yes, this patch does solve the problem. |
Should be fixed in r248690 |
Confirmed, r248690 fixes the problem. |
Extended Description
The boost example,
#include <boost/multiprecision/cpp_bin_float.hpp>
#include <boost/math/special_functions/gamma.hpp>
#include
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_injectorstd::range_error >'
what(): No bits were set in the operand.
this is on Ubunto 14.04 64 bit, boost 1.57.
The text was updated successfully, but these errors were encountered: