https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
--- Comment #6 from Giovanni Bajo ---
A patch has been posted here:
https://gcc.gnu.org/ml/libstdc++/2018-12/msg00038.html
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
--- Comment #5 from Giovanni Bajo ---
Created attachment 45474
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45474&action=edit
Chart generated by chart.cpp that highlights broken distribution
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
--- Comment #4 from Giovanni Bajo ---
Created attachment 45473
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45473&action=edit
What test.cpp actually does output with std::random_shuffle
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
--- Comment #3 from Giovanni Bajo ---
Created attachment 45472
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45472&action=edit
What test.cpp should output if random_shuffle worked
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
--- Comment #2 from Giovanni Bajo ---
Created attachment 45471
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45471&action=edit
Test code to draw a chart of distributions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88935
--- Comment #1 from Giovanni Bajo ---
Created attachment 45470
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45470&action=edit
Test code to reproduce bug
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: giovannibajo at gmail dot com
Target Milestone: ---
The problem we faced is an heavy non-uniform distribution of probabilities
with the result of std
mal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: giovannibajo at gmail dot com
I'm unable to compile the attached code with GCC 4.9.0, at -O0 even without -g,
because of RAM exhaustion (16GB). LLVM 3.4svn is able to compile the program in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61183
--- Comment #1 from Giovanni Bajo ---
Created attachment 32794
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32794&action=edit
Preprocessed source