[Bug libstdc++/88935] std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug libstdc++/88935] std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug libstdc++/88935] std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug libstdc++/88935] std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug libstdc++/88935] std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug libstdc++/88935] std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug libstdc++/88935] New: std::random_shuffle does not work if the sequence is longer than RAND_MAX elements

2019-01-20 Thread giovannibajo at gmail dot com
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

[Bug c++/61183] New: Large memory usage with smallish C++ templates (> 16GB)

2014-05-13 Thread giovannibajo at gmail dot com
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

[Bug c++/61183] Large memory usage with smallish C++ templates (> 16GB)

2014-05-13 Thread giovannibajo at gmail dot com
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