[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-06-13 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #10 from GCC Commits --- The master branch has been updated by Alexandre Oliva : https://gcc.gnu.org/g:9b8c3e622c7cd4ea393f59b873c3107767e1ba88 commit r15-1301-g9b8c3e622c7cd4ea393f59b873c3107767e1ba88 Author: Alexandre Oliva Date

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-06-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-06-11 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #8 from GCC Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:bd31ecc1c7aef5b4ae7ddb04926a2f4105957df4 commit r12-10538-gbd31ecc1c7aef5b4ae7ddb04926a2f4105957df4 Author: Jonathan Wak

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-05-14 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #7 from Jonathan Wakely --- Fixed for 13.3 and 14.1 so far, I still plan to backport this to gcc-12 too.

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-05-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #6 from GCC Commits --- The releases/gcc-13 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:71e941b0e329d3a316e465569c92e08788a68614 commit r13-8771-g71e941b0e329d3a316e465569c92e08788a68614 Author: Jonathan Wake

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-19 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |12.4 --- Comment #5 from Jonathan Wak

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-19 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #4 from GCC Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:07e03761a7fc1626a6a74ed957e117f56981558c commit r14-9551-g07e03761a7fc1626a6a74ed957e117f56981558c Author: Jonathan Wakely Date:

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-18 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigne

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #3 from Jonathan Wakely --- This seems to fix it: --- a/libstdc++-v3/include/bits/random.tcc +++ b/libstdc++-v3/include/bits/random.tcc @@ -1503,7 +1503,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // sqrt(pi / 2) const

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2024-03-16 Status|UNCONFI

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-15 Thread angelo.landi at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #2 from Angelo Landi --- (In reply to Andrew Pinski from comment #1) > > Due to an integer overflow > > Hmm, I don't think this is an integer overflow but rather due to wrapping. > Yes there is a difference as overflow is undefined

[Bug libstdc++/114359] std::binomial_distribution hangs in infinite loop

2024-03-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114359 --- Comment #1 from Andrew Pinski --- > Due to an integer overflow Hmm, I don't think this is an integer overflow but rather due to wrapping. Yes there is a difference as overflow is undefined behavior while wrapping is defined.