This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/56202] SIGFPE (division by zero) in std::binomial_distribution
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Feb 2013 19:00:22 +0000
- Subject: [Bug libstdc++/56202] SIGFPE (division by zero) in std::binomial_distribution
- Auto-submitted: auto-generated
- References: <bug-56202-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56202
--- Comment #11 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2013-02-04 19:00:22 UTC ---
(In reply to comment #10)
> (In reply to comment #9)
> > You are right, but then I don't understand why we should compute __e *before*
> > checking __t == __x, per your first patch (I think I managed to confuse myself
>
> Indeed.
Actually, the way I quoted the paragraph is unfortunate. I just want to say,
that you are right and we should compute __e *before* checking __t == __x. I
didn't realise this earlier and that probably helped to confuse things.