Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C3872

Error Message

'char': this character is not allowed in an identifier

The compiler does not allow a universal character name (UCN) if the hex value is less than 0x20 or in the range 0x7F-0x9F. The UCN cannot designate a character in the basic source character set, and UCNs are not allowed in identifiers.

The following sample generates C3872:

// C3872.cpp
int main() {
   int \u0040;   // C3872, in base char set

Community Additions

© 2015 Microsoft