Compiler Error C2236
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 {};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for