https://llvm.org/bugs/show_bug.cgi?id=23311
Bug ID: 23311
Summary: Can't compile Clang on windows using Visual Studio
2015 preview
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: libclang
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
When trying to compile clang with Visual Studio 2015 preview, I get the
following error when compiling RecordLayoutBuilder.cpp (in clangAST) :
RecordLayoutBuilder.cpp(2981) error C2678: binary '==': no operator found which
takes a left-hand operand of type
'llvm::DenseMapIterator<KeyT,ValueT,KeyInfoT,BucketT,false>' (or there is no
acceptable conversion) (...) while trying to match the argument list
'(llvm::DenseMapIterator<KeyT,ValueT,KeyInfoT,BucketT,false>,
llvm::DenseMapIterator<KeyT,ValueT,KeyInfoT,BucketT,false>)'
The compiler seem to complain because the egality-comparison operator is only
defined for RHS maps of type
llvm::DenseMapIterator<KeyT,ValueT,KeyInfoT,BucketT,true>
I have solved the problem by replacing the comparison operator in DenseMap.h,
lines 1039-1054 so that they can take input of any DenseMapIterator, not only
ConstIterator.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs