4

cat test.cpp

#include <iostream>

int main() {
  int à;
}

results in:

clang++ test.cpp
test.cpp:4:7: error: expected unqualified-id
  int à;
      ^
1 error generated.

Now, is there a way to get clang to allow unicode variable names?

Thanks!

Alan Moore
  • 73,866
  • 12
  • 100
  • 156
anon
  • 41,035
  • 53
  • 197
  • 293
  • 2
    Is it standard C to have Unicode characters inside identifiers? – zneak Apr 21 '10 at 22:30
  • `clang++` 3.4 supports this. Since 3.3 (http://llvm.org/releases/3.3/tools/clang/docs/ReleaseNotes.html#major-new-features) – alfC Oct 30 '14 at 17:46

1 Answers1

2

While this is allowed by the standard, Clang does not currently support UCN (universal character name)s in identifiers.

Michael Spencer
  • 1,029
  • 9
  • 18