Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
unexpected token 'identifier'. Did you forget a ';'?
The identifier is already defined as a type and cannot be overridden by a user-defined type.
The following sample generates C2236:
// C2236.cpp
// compile with: /c
int class A {}; // C2236 "int class" is unexpected
int i;
class B {};
Please sign in to use this experience.
Sign in