[LLVMbugs] [Bug 23311] New: Can't compile Clang on windows using Visual Studio 2015 preview
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 22 05:05:51 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: ernest.galbrun at gmail.com
CC: klimek at google.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150422/63ab089e/attachment.html>
More information about the llvm-bugs
mailing list