https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123409
Bug ID: 123409
Summary: negative_binomial_distribution::param() does not
modify member gamma_distribution
Product: gcc
Version: 15.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: leman at mailbox dot org
Target Milestone: ---
Created attachment 63225
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63225&action=edit
sample program showing the problem
The constructors for `negative_binomial_distribution` use `param_type` to
initialize the member `gamma_distribution`.
On the other hand, `param(const param_type& params)` does not do that,
resulting in malformed distribution state.
Example program: negative_binomial_test.cc
Analogous issue fixed for `chi_squared_distribution`:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83833
Also applies to: `fisher_f_distribution` and `student_t_distribution`. Should I
file separate reports for those two?