-
Notifications
You must be signed in to change notification settings - Fork 113
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
GCD fails on cpp_int #370
Comments
Anything that goes into an infinite loop is most certainly a bug. Will look into it shortly. |
Hi @jzmaddock. Note that I could not reproduce the bug with VC++ on Windows. Just in case this was your platform. To me this seems a serious bug, as the gcd is computed several times in each arithmetic operation. |
Confirmed, I just don't see the bug yet. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having an issue with calling
gcd
on certaincpp_int
numbers for several examples in CGAL. I have created a minimal example here.I have tested it on
macOS x86_64
andLinux
platforms (bothclang
andgcc
) and, in both cases, thegcd
runs forever. To be more precise, inmisc.hpp
insideeval_gcd_lehmer
there is a call todivide_subtract
where we enter a while loop but we never exit this loop. After some checking, it seems like the issue was introduced somewhere in-between versions 1.75 and 1.76 of boost because 1.75 works correctly while 1.76 fails. The commitseems to introduce this issue. With the previous commit
981aee54dc2e1aec2d752bb188d9bf6f9d4af0a3
it works correctly.It would be nice if someone from the authors could have a look and tell me if it is indeed a bug. Thank you!
The text was updated successfully, but these errors were encountered: