Compiler Error C2147
Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer

Compiler Error C2147

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
© 2015 Microsoft