[Bug libstdc++/110045] std::normal_distribution (and likely others) give wrong min() and max() values

2023-05-30 Thread gccbugs at elkpod dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110045 --- Comment #7 from Frank J. T. Wojcik --- After playing with this a bit more, I was able to find a Generator which produces a slightly wider bound, but still nowhere near 0x1.fep+127. This also includes the requested change to SimpleGen. #

[Bug libstdc++/110045] std::normal_distribution (and likely others) give wrong min() and max() values

2023-05-30 Thread gccbugs at elkpod dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110045 --- Comment #6 from Frank J. T. Wojcik --- (In reply to Andrew Pinski from comment #5) > 2 things, I think your result_type in SimpleGen needs to be public. Sure, I'll change that. > Second is LLVM's libc++ outputs: > -inf -inf > inf inf I on

[Bug libstdc++/110045] std::normal_distribution (and likely others) give wrong min() and max() values

2023-05-30 Thread gccbugs at elkpod dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110045 --- Comment #4 from Frank J. T. Wojcik --- (In reply to Andrew Pinski from comment #3) > With 24bit precision, maybe it is ~8 standard deviations away from the mean. > But the generator argument can change for each call though so that does not >

[Bug libstdc++/110045] std::normal_distribution (and likely others) give wrong min() and max() values

2023-05-30 Thread gccbugs at elkpod dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110045 --- Comment #2 from Frank J. T. Wojcik --- (In reply to Andrew Pinski from comment #1) > The heavy weight goes to potentially. The way I understand it is not the max > of what operator() has produced currently but will potentially return in the

[Bug libstdc++/110045] New: std::normal_distribution (and likely others) give wrong min() and max() values

2023-05-30 Thread gccbugs at elkpod dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110045 Bug ID: 110045 Summary: std::normal_distribution (and likely others) give wrong min() and max() values Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severit