Issue 145240
Summary [Clang] UCN in preprocessor-pasted identifier not resolved to unicode
Labels clang
Assignees
Reporter fuhsnn
    With the snippet:
```
#define CAT(a,b) a##b

char foo\u00b5;
char*p = &CAT(foo, \u00b5);
```
Clang resolves the variable name as `"fooµ"`, and the concatenated reference to it next line as `"foo\u00b5"`, then error on undeclared reference. Other implementations instead treat both the same: https://godbolt.org/z/M1fejPK36

Wasn't encountered in real world, just a what-if test I came up for my implementation.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to