<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 --- - Can't compile Clang on windows using Visual Studio 2015 preview"
   href="https://llvm.org/bugs/show_bug.cgi?id=23311">23311</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Can't compile Clang on windows using Visual Studio 2015 preview
          </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>libclang
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ernest.galbrun@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>klimek@google.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</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>