<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 - Build failure on ppc64: include/chrono:374:59: error: ‘(9.223372036854775807e+18 / 1.0e+9)’ is not a constant expression"
href="https://bugs.llvm.org/show_bug.cgi?id=33516">33516</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Build failure on ppc64: include/chrono:374:59: error: ‘(9.223372036854775807e+18 / 1.0e+9)’ is not a constant expression
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>4.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>tstellar@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>libc++ build fails on ppc64 linux, with gcc (GCC) 6.3.1 20161221 (Red Hat
6.3.1-1)
llvm.src/projects/libcxx/include/chrono:413:67: in constexpr expansion of
‘std::__1::chrono::__duration_cast<std::__1::chrono::duration<long long int,
std::__1::ratio<1l, 1000000000l> >, std::__1::chrono::duration<long double>,
std::__1::ratio<1l, 1000000000l>, true,
false>().std::__1::chrono::__duration_cast<_FromDuration, _ToDuration, _Period,
true, false>::operator()<std::__1::chrono::duration<long long int,
std::__1::ratio<1l, 1000000000l> >, std::__1::chrono::duration<long double>,
std::__1::ratio<1l, 1000000000l> >(__fd)’
/home/tmp.OkzzGfk9Zm/rc3/llvm.src/projects/libcxx/include/chrono:374:59: error:
‘(9.223372036854775807e+18 / 1.0e+9)’ is not a constant expression
static_cast<_Ct>(__fd.count()) /
static_cast<_Ct>(_Period::den)));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</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>