<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56655>56655</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
std::codecvt<char8_t, wchar_t, std::mbstate_t> is not implemented in libc++
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jcelerier
</td>
</tr>
</table>
<pre>
Repro:
```cpp
#include <codecvt>
int x = sizeof(std::codecvt<char8_t, wchar_t, std::mbstate_t>);
```
causes
```
<source>:4:9: error: implicit instantiation of undefined template 'std::codecvt<char8_t, wchar_t, __mbstate_t>'
int x = sizeof(std::codecvt<char8_t, wchar_t, std::mbstate_t>);
^
/opt/compiler-explorer/clang-trunk-20220721/bin/../include/c++/v1/__locale:952:85: note: template is declared here
template <class _InternT, class _ExternT, class _StateT> class _LIBCPP_TEMPLATE_VIS codecvt;
^
1 error generated.
Compiler returned: 1
```
godbolt repro: https://gcc.godbolt.org/z/E6cEPcMzv
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9U1FvmzAQ_jXmxQoCAyF94CFNiVSplaIt2isCcyHuHBvZJu3663cGkm7RNE3aNMsYc3ecv_vuc6Pbb8Un6I0myZpEDyS6rMtomrzvZwtLhOJyaIGSZMN1C_zsSFJOXqEcfUPHA7XiHfSBsJV1rU-arK-xG36szapyhG3oq99P22vgqbGudlCNadkdSe5vwPyIkNeDBftLzPNnsrF6MBx8tmSd4oMp1xSM0cZvxKmXggtHhcJzlRO1E1pRfaCDauEgFLTUAQYhJkpY_scFVdXPleT_gSM6D5KVl35tdY__brk-9UKCWcBbL7UB422yVt3CmUF9XbCIsShnMZoboXANQ1zmXvtYwu7HuT37mKqSmtcSPJ0Zw3WVeTKVdt70QZiwFEuStUEWj2BgQvXBJ1Yqa2tp9agcGLX3Vc6W8u3W8tnXvMeSL4anx_vNblfty-fd03pfVl8eP9MrhzeU_MtxpTeedEQ7UGAQXBtO9s3MNjXgBoMS8qTEv9Fxp9tGS4fx0y2kR-d665vNtjg7zsM5JNSmQ8s7PuWSlzv-_H4O2iJp75K7OnDCSSj-TlC-adjI8WbACbAxLV4OKkUziyAYjCxuAAp3HJoQVYYfUp4vrwWW8wLcK1BYO-BVZdtsucyy4Fi08XIVJ4ecp3V8SFcNsBbR5ss6ylc5-gJZNyBtQTI8lCl4pWMK3JPsIRDFRbJxGmVRFkLEeJ40EWRJytM0J2kEp1rI0OPwrAWmGCE1Q2fRKYV19sOJghKdAhiPw_z14I7aFC8csI8CTDAeXozgvwPB9omt">