https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83833
Bug ID: 83833
Summary: chi_squared_distribution::param() forgot to change the
member gamma_distribution
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: rs2740 at gmail dot com
Target Milestone: ---
From https://stackoverflow.com/q/48248565/2756719.
The constructor initializes _M_gd with (__n / 2), but param(const param_type&)
forgot to change it:
void
param(const param_type& __param)
{ _M_param = __param; }