[Bug libstdc++/48114] [C++0x] binomial_distribution incorrect for p > .5 and geometric_distribution wrongly implements the TR1 definition

2011-03-16 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114 --- Comment #20 from Andrey Zholos 2011-03-16 22:43:45 UTC --- Good idea. The testcases should be adapted to the code paths in the GCC generators though: for instance, binomial with p > .5 isn't covered there. And BINS should be increased: for in

[Bug libstdc++/48114] [C++0x] binomial_distribution incorrect for p > .5 and geometric_distribution wrongly implements the TR1 definition

2011-03-14 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114 --- Comment #12 from Andrey Zholos 2011-03-14 18:07:22 UTC --- The double __p also fixes an infinite (maybe) loop in both binomial_distribution(100, .75) and binomial_distribution(100, .25) when _GLIBCXX_USE_C99_MATH_TR1 is defined. I guess th

[Bug libstdc++/48114] [C++0x] binomial_distribution incorrect for p > .5 and geometric_distribution wrongly implements the TR1 definition

2011-03-14 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114 --- Comment #8 from Andrey Zholos 2011-03-14 17:34:01 UTC --- Ah, yes, I only looked at the C++0x formulas. By the way, testcases for these don't need to sample probabilities. They can just check, say, the first 100 values drawn using a determin

[Bug libstdc++/48114] binomial_distribution incorrect for p > .5

2011-03-14 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114 --- Comment #4 from Andrey Zholos 2011-03-14 15:25:14 UTC --- Created attachment 23652 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23652 Probability table for geometric_distribution.

[Bug libstdc++/48114] binomial_distribution incorrect for p > .5

2011-03-14 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114 --- Comment #3 from Andrey Zholos 2011-03-14 15:23:25 UTC --- I'll add this here since it's in the same place and the test will be similar. For geometric_distribution(.25) the first 10 probabilities are: sample correct p_0 0.000

[Bug libstdc++/48114] New: binomial_distribution incorrect for p > .5

2011-03-14 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48114 Summary: binomial_distribution incorrect for p > .5 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: un

[Bug c++/43281] [c++0x] ICE with invalid auto

2010-10-17 Thread aaz at althenia dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43281 Andrey Zholos changed: What|Removed |Added CC||aaz at althenia dot net --- Comment #5

[Bug c++/42336] [c++0x] ICE with pointer-to-member-function decltype argument in template function

2009-12-09 Thread aaz at althenia dot net
--- Comment #2 from aaz at althenia dot net 2009-12-10 00:07 --- To be more specific, it happens only with -O -fipa-sra -finline-small-functions -g -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42336

[Bug c++/42336] New: [c++0x] ICE with pointer-to-member-function decltype argument in template function

2009-12-08 Thread aaz at althenia dot net
n decltype argument in template function Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aaz at althenia do

[Bug c++/40619] [c++0x] ICE on repeated decltype expression in auto functions

2009-07-04 Thread aaz at althenia dot net
--- Comment #4 from aaz at althenia dot net 2009-07-04 12:54 --- It works. Thanks! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40619

[Bug c++/40619] New: [c++0x] ICE on repeated decltype expression in auto functions

2009-07-02 Thread aaz at althenia dot net
ctions Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aaz at althenia dot net GCC build triplet: x86_64-portbld-freebsd7.2