https://llvm.org/bugs/show_bug.cgi?id=26001
Bug ID: 26001 Summary: [clang-cl] error: "asm operand has incomplete type" on boost::atomic Product: clang Version: trunk Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: heavenandhell...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified 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. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs