Export (0) Print
Expand All
Expand Minimize

Compiler Error C2147

Error Message

syntax error : 'identifier' is a new keyword

An identifier was used that is now a reserved keyword in the language.

The following sample generates C2147:

// C2147.cpp
// compile with: /clr
int main() {
   int gcnew = 0;   // C2147
   int i = 0;   // OK
}

Community Additions

ADD
Show:
© 2014 Microsoft