<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 --- - Cannot compile clang 3.7.0 with msvc 14 (2015)"
   href="https://llvm.org/bugs/show_bug.cgi?id=25650">25650</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Cannot compile clang 3.7.0 with msvc 14 (2015)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </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>pendenaor@openaliasbox.org
          </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>When compiling clang 3.7.0 with msvc 14 using cmake, it fails on ASTWriter.cpp
:
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(1517): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'uns
igned int *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(1517): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(1912): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'uns
igned int *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(1912): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2237): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'uns
igned int *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2237): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2783): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'std
::pair<uint32_t,clang::serialization::DeclID> ' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2783): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2802): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'uns
igned int *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2802): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2815): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'cla
ng::serialization::DeclOffset *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(2815): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(3070): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'uns
igned int *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(3070): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(3520): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'uns
igned int *' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(3520): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(4446): error
C2664: 'void llvm::BitstreamWriter::EmitRecord
WithBlob<uint64_t>(unsigned int,llvm::SmallVectorImpl<uint64_t>
&,llvm::StringRef)': cannot convert argument 3 from 'std
::pair<uint32_t,clang::serialization::DeclID> ' to 'llvm::StringRef'
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp(4446): note: No
constructor could take the source type, or
constructor overload resolution was ambiguous
ASTWriterStmt.cpp

The compile command generated by cmake :
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\CL.exe" /c
/I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0\ucrt"
I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include"
/IC:\dev\clingbuild\tools\clang\lib\Serialization
/IC:\dev\cling\src\tools\clang\lib\Serialization
/IC:\dev\cling\src\tools\clang\include /IC:\dev\cling\build\tools\clang\include
/IC:\dev\cling\build\include /IC:\dev\cling\src\include /nologo /W1 /WX- /MP
/O2 /Ob2 /Oy- /D NDEBUG /D _HAS_EXCEPTIONS=0 /D GTEST_HAS_RTTI=0 /D
_CRT_SECURE_NO_DEPRECATE /D _CRT_SECURE_NO_WARNINGS /D
_CRT_NONSTDC_NO_DEPRECATE /D _CRT_NONSTDC_NO_WARNINGS /D
_SCL_SECURE_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /D __STDC_CONSTANT_MACROS
/D __STDC_FORMAT_MACROS /D __STDC_LIMIT_MACROS /D _GNU_SOURCE /D
CLANG_ENABLE_ARCMT /D CLANG_ENABLE_OBJC_REWRITER /D LANG_ENABLE_STATIC_ANALYZER
/D "CMAKE_INTDIR=\"Release\"" /D _MBCS /Gm- /MD /GS /fp:precise /Zc:wchar_t
/Zc:forScope /Zc:inline /GR- /Fo"clangSerialization.dir\Release\\"
/Fd"clangSerialization.dir\Release\clangSerialization.pdb" /Gd /TP /wd4146
/wd4180 /wd4244 /wd4258 /wd4267 /wd4291 /wd4345 /wd4351 /wd4355 /wd4456 /wd4457
/wd4458 /wd4459 /wd4503 /wd4624 /wd4722 /wd4800 /analyze- /errorReport:queue
/we4238 /EHs-c- -w14062
C:\dev\cling\src\tools\clang\lib\Serialization\ASTCommon.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\ASTReader.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\ASTReaderDecl.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\ASTReaderStmt.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriter.cpp
C:\dev\cling\src\tools\clang\lib
\Serialization\ASTWriterDecl.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\ASTWriterStmt.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\GeneratePCH.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\GlobalModuleIndex.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\Module.cpp
C:\dev\cling\src\tools\clang\lib\Serialization\ModuleManager.cpp

Stéphane.</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>