<div dir="ltr"><div><div>Quoth the Standard:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Each universal-character-name in an identifier shall designate a character whose encoding in ISO 10646 falls into one of the ranges specified in Table 2.<br></blockquote><br>\u3010 is in a gap between the allowed ranges 3004-3007 and 3021-302F.<br></div>The error message could be better.<br><br></div>-- HT<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 8, 2018 at 1:25 AM, via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The code below compiles:<br>
<br>
class 字<br>
{<br>
};<br>
<br>
==============================<wbr>=============<br>
<br>
But the code below results in a compilation error:<br>
<br>
class 【字】<br>
{<br>
<br>
};<br>
<br>
測.cpp:1:7: error: non-ASCII characters are not allowed outside of<br>
literals and identifiers<br>
class 【字】<br>
^~<br>
測.cpp:1:13: error: non-ASCII characters are not allowed outside of<br>
literals and identifiers<br>
class 【字】<br>
^~<br>
<br>
But obviously I am using "【" and "】" in a class identifier, why does<br>
Clang++ complains?<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>