<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Clang++ 3.4 of Ubuntu 13.10 miscompiles simd_fast_mersenne_twister_engine of gcc 4.8.1"
   href="http://llvm.org/bugs/show_bug.cgi?id=18323">18323</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang++ 3.4 of Ubuntu 13.10 miscompiles simd_fast_mersenne_twister_engine of gcc 4.8.1
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kazarmy@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11779" name="attach_11779" title="simd_fast_mersenne_twister_engine test case.">attachment 11779</a> <a href="attachment.cgi?id=11779&action=edit" title="simd_fast_mersenne_twister_engine test case.">[details]</a></span>
simd_fast_mersenne_twister_engine test case.

Clang++ 3.4 (1:3.4~svn183914-1ubuntu1) of 64-bit Ubuntu 13.10 miscompiles the
simd_fast_mersenne_twister_engine class of g++ 4.8.1. Test case (attached) is
from the GCC libstdc++ test suite revision 195701 [1], modified slightly to
include the VERIFY macro definition. 

[1]
<a href="http://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc?revision=195701&view=markup">http://gcc.gnu.org/viewcvs/gcc/trunk/libstdc%2B%2B-v3/testsuite/ext/random/simd_fast_mersenne_twister_engine/cons/default.cc?revision=195701&view=markup</a>

Produced output
---------------
1905317600 vs 1318548553
90692538 vs 1985957974
88078402 vs 1367744196
4101078356 vs 3463392791
1092336181 vs 2780736231
143236910 vs 3894488561
305079048 vs 3157036262
3417987406 vs 3491812767
887944328 vs 1724574180
211759797 vs 3645035493
a.out: default.cc:47: void run_test(std::initializer_list<typename
SFMT::result_type>) [SFMT =
__gnu_cxx::simd_fast_mersenne_twister_engine<unsigned int, 607, 2, 15, 3, 13,
3, 4261361663, 4018093949, 4286020477, 2146958127, 1, 0, 0, 1502015572>]:
Assertion `success' failed.
Aborted (core dumped)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>