This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/56202] SIGFPE (division by zero) in std::binomial_distribution


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]