Compiler Error C2745


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Error C2745.

token' : this token cannot be converted to an identifier

Identifiers must be comprised of legal characters.

The following sample generates C2745:

// C2745.cpp  
// compile with: /clr  
int main() {  
   int __identifier([));   // C2745