<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - UBSan "shift exponent 32 is too large for 32-bit type" on include/c++/v1/algorithm:3025:"
href="https://bugs.llvm.org/show_bug.cgi?id=35096">35096</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>UBSan "shift exponent 32 is too large for 32-bit type" on include/c++/v1/algorithm:3025:
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>brian.cain@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>"LLVM-Unit :: Support/./SupportTests/Parallel.sort" caught a UBSan failure
regarding the shift exponent in the algorithm header.
~~~~~~~~~~
******************** TEST 'LLVM-Unit :: Support/./SupportTests/Parallel.sort'
FAILED ********************
...
/local/mnt/workspace/install/clang_Aug_2017/bin/../include/c++/v1/algorithm:3025:17:
runtime error: shift exponent 32 is too large for 32-bit type
'std::__1::__independent_bits_engine<std::__1::mersenne_twister_engine<unsigned
long, 32, 624, 397, 31, 2567483615, 11, 4294967295, 7, 2636928640
, 15, 4022730752, 18, 1812433253>, unsigned int>::result_type' (aka 'unsigned
int')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
/local/mnt/workspace/install/clang_Aug_2017/bin/../include/c++/v1/algorithm:3025:17
in</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>