https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107660
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107660
--- Comment #9 from Tomoya Suzuki ---
Thanks for clarifying the cause. I don't think you need to add the macro just
for me, gcc11 behavior is not critical for me.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107660
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |UNCONFIRMED
Ever confirmed|1
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107660
--- Comment #7 from Tomoya Suzuki ---
The following code appears to me to work differently with gcc10 and gcc11.
#include
#include
#include
int kRandSeed = 27491095;
int
main()
{
const int n = 16384;
std::vector v(n);
std::mt19937
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107660
--- Comment #6 from Jonathan Wakely ---
It's expected and required by the standard that std::mt19937 produces the same
numbers every time. And if I run a test for GCC 10 and GCC 11 I see the same
number produced for the first 2.14 billion
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107660
--- Comment #5 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #4)
> std::mt19937
r11-4535-g822c1d21a3c710
Hmm, this might be expected