https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80977

--- Comment #2 from Christoph Conrads <g...@christoph-conrads.name> ---
Created attachment 44802
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44802&action=edit
Patch proposal for GCC bug 80977

This patch attempts to fix bug 80977. The code in __generate_impl was not
tested but the issue is the same.

Curiously, __generate_impl handles the case correctly where the right interval
boundaries of generator and uniform_int_distribution are powers of two while
operator() does not.

The patch was created based on commit 16db from October 7, 2017.

Reply via email to