[Bug c++/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-11 Thread m_albert137 at yahoo dot com
-- m_albert137 at yahoo dot com changed: What|Removed |Added Severity|normal |major Component|libstdc++ |c++ http://gcc.

[Bug c++/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-09 Thread m_albert137 at yahoo dot com
--- Comment #3 from m_albert137 at yahoo dot com 2009-08-09 21:09 --- Created an attachment (id=18334) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18334&action=view) "savetemps" file from "g++ -O3 -v --save-temps t.cpp" The savetemps file. -- http://gcc.gnu.org/bugzilla/sh

[Bug c++/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-09 Thread m_albert137 at yahoo dot com
--- Comment #2 from m_albert137 at yahoo dot com 2009-08-09 21:05 --- Created an attachment (id=18333) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18333&action=view) Configuration information from "g++ -O3 -v --save-temps t.cpp" Config information from "-v" compilation. --

[Bug c++/41019] Variate_generator with mt19937 and normal_distribution produces wrong sequence for "-O3".

2009-08-09 Thread m_albert137 at yahoo dot com
--- Comment #1 from m_albert137 at yahoo dot com 2009-08-09 21:02 --- Created an attachment (id=18332) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18332&action=view) Example code When compiled below -O3 (e.g., -O2), this code gives: 0 -0.29321891723895837645 1 0.2531608189579668