<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/110415>110415</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libcxx compliation issue with clang-cl
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ShuangLiu1992
</td>
</tr>
</table>
<pre>
building with the latest msvc release with clang tools,
configure as shown in the docs
```
cmake -G Ninja -S runtimes -B build -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLLVM_ENABLE_RUNTIMES=libcxx
```
getting erros like these
```
E:\projects\llvm-project\build\include\c++\v1\string(2272,1): error: explicit instantiation of 'insert' does not refer to a function template, variable template, member function, member class, or static data member
E:\projects\llvm-project\build\include\c++\v1\__string/extern_template_lists.h(46,85): note: expanded from macro '_LIBCPP_STRING_V1_EXTERN_TEMPLATE_LIST'
46 | _Func(_LIBCPP_EXPORTED_FROM_ABI basic_string<_CharType>& basic_string<_CharType>::insert(size_type, value_type const*, size_type)) \
| ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
35 warnings and 20 errors generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE2P4jgT_jXFpQRKHALkkAOEMEIvdLdo3lHfIsepBM84NrKd_thfv0oCPb2r2T2tZDlxVfnxU5_cOdloohTiDcTbCe_8xdj0-dJx3RxkFyYJm5Sm-kjLTqpK6gbfpL-gvxAq7sl5bN2rQEuKuKNRKRTXDXpjlAOWQbCFYD3uwuhaNp0l5A7dxbxplHoAq4xweDNdBLc13mn5T8LpN3yQ-gfH6TPaTnvZksPpBgdaON1mx_X_8iIrssfj0_6QnyDaDjSmQv3Svrz8g_5w-H4s8of15pAXp_8_nPfH_BmirZKleH__Latxb8j7PiZkrXGo5E_qnXH02ys5RGuIs6s1P0h4B3Gm1Gs7vZ0hzgZfIM6kF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