<div dir="rtl"><div dir="ltr">I have tested Visual C++ 2013RC and indeed it does not define char16_t by default.</div><div dir="ltr"><br></div><div dir="ltr">However, if any C++ is header is included, including <cstdio>, char16_t does gets defined through yvals.h.</div>
<div dir="ltr"><br></div><div dir="ltr">This may be consistent with standards since char16_t is part of C++11 but not C99 (may be part of C11).</div><div dir="ltr"><br></div><div dir="ltr">So if we wish to exactly emulate VC behaviour clang is OK now but it is inconsistent with the -std=c++11 switch. I'll see if this can be patched.</div>
<div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></div><div class="gmail_extra"><div dir="ltr"><br><br><div class="gmail_quote">2013/10/6 Yaron Keren <span dir="ltr"><<a href="mailto:yaron.keren@gmail.com" target="_blank">yaron.keren@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div dir="rtl"><div dir="ltr">Thanks, this indeed brings back char16_t. </div>
<div dir="ltr"><br></div><div dir="ltr">Since char16_t, char32_t are part of C++11 standard, shouldn't clang provide them when -stc=c++11 is specificed?</div><span class="HOEnZb"><font color="#888888">
<div dir="ltr"><br></div><div dir="ltr">Yaron</div><div dir="ltr"><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/10/6 Nico Rieck <span dir="ltr"><<a href="mailto:nico.rieck@gmail.com" target="_blank">nico.rieck@gmail.com</a>></span></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 05.10.2013 22:43, Yaron Keren wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Trying to compile program in C++11 mode that uses char16_t fails [...]<br>
</blockquote>
<br>
For whatever reason (probably because MSVC does not define those yet), the char(16|32)_t keywords are not defined in MicrosoftMode. So you have to compile with -fno-ms-compatibility for now.<span><font color="#888888"><br>
<br>
-Nico<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div></div></div>