<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 --- - [clang-cl] error: "asm operand has incomplete type" on boost::atomic"
href="https://llvm.org/bugs/show_bug.cgi?id=26001">26001</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[clang-cl] error: "asm operand has incomplete type" on boost::atomic
</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>Windows NT
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>heavenandhell171@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Clang is failing to compile this:
#include <boost/atomic.hpp>
int main() {
boost::atomic<boost::int64_t> counter;
counter.store(0, boost::memory_order_relaxed);
return 0;
}
This is one of the errors i'm getting:
../boost_1_60_0\boost/atomic/detail/ops_msvc_x86.hpp(640,26) : error: asm
operand has incomplete type 'volatile storage_type *' (aka 'volatile typename
make_storage_type<8U, Signed>::type *')
mov edx, p
^
The snippet is a reduced test case i extracted from a library. It can be built
with the following command (there's no need to build boost):
clang-cl Tmp.cpp -Ic:\boost_1_60_0\
Note, the error only happen with 64 bit integers, if i change the type to
int32_t or long, there's no error.</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>