<html>
<head>
<base href="https://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 --- - r286884 breaks the build when compiling with an older clang"
href="https://llvm.org/bugs/show_bug.cgi?id=31016">31016</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>r286884 breaks the build when compiling with an older clang
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vsk@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>We build with an older version of clang (branched around 3.8) which can't
deduce that a default template argument is a constant expression.
Ideally, we'd like to check in a workaround that doesn't hardcode a compiler
version check. If that's not possible, we'll look into upgrading our bots or
disabling the test. Any advice you have would be appreciated.
Here is the error message:
/Users/buildslave/jenkins/sharedspace/apple-clang-master-RA-stage1-cmake-incremental@2/clang/src/projects/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/default.pass.cpp:27:40:
error: non-type template argument is not a constant expression
template <typename T, bool isTrivial =
std::is_trivially_default_constructible_v<T>>
^
/Users/buildslave/jenkins/sharedspace/apple-clang-master-RA-stage1-cmake-incremental@2/clang/src/projects/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/default.pass.cpp:53:21:
note: while checking a default template argument used here
test_trivial<int>()();
~~~~~~~~~~~~~~~~^
/Users/buildslave/jenkins/sharedspace/apple-clang-master-RA-stage1-cmake-incremental@2/clang/src/projects/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/default.pass.cpp:27:40:
error: non-type template argument is not a constant expression
template <typename T, bool isTrivial =
std::is_trivially_default_constructible_v<T>>
^
/Users/buildslave/jenkins/sharedspace/apple-clang-master-RA-stage1-cmake-incremental@2/clang/src/projects/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/default.pass.cpp:27:40:
error: non-type template argument is not a constant expression
/Users/buildslave/jenkins/sharedspace/apple-clang-master-RA-stage1-cmake-incremental@2/clang/src/projects/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/default.pass.cpp:27:40:
error: non-type template argument is not a constant expression
/Users/buildslave/jenkins/sharedspace/apple-clang-master-RA-stage1-cmake-incremental@2/clang/src/projects/libcxx/test/std/iterators/stream.iterators/istream.iterator/istream.iterator.cons/default.pass.cpp:27:40:
error: non-type template argument is not a constant expression
5 errors generated.
--</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>