[cfe-dev] Unicode support bug in Clang++-5.0

via cfe-dev cfe-dev at lists.llvm.org
Sat Apr 7 22:25:39 PDT 2018


The code below compiles:

class 字
{
};

===========================================

But the code below results in a compilation error:

class 【字】
{

};

測.cpp:1:7: error: non-ASCII characters are not allowed outside of
literals and identifiers
class 【字】
      ^~
測.cpp:1:13: error: non-ASCII characters are not allowed outside of
literals and identifiers
class 【字】
          ^~

But obviously I am using "【" and "】" in a class identifier, why does
Clang++ complains?


More information about the cfe-dev mailing list